Complete homework 2