Added solutions to problem 2