homework 2 solution