hw 5 with problem 1 completed