homework 2 end of wexercise 1