finished 2 of 4 problems in hw5