hw4 1st part