added solutions to problem 7