completed solutions to Midterm2