finished the first part of homework 6 still need to do question 2