Checkout out solutions by task bellow: