hw2 second task done