hw4 first scenario done