Introducing one solution to problem 3