Homework2 completed