Introducing first solution to problem 18