finished hw4.1