Add solutions and explanations for Homework 2