doing hw4.1