solutions to partial exam 1