hw4 first part