completed hw3 thru problem 10, part of problem 11