Introducing first solution to problem 8