solutions to exercises from class 2