final work for Hw3 part 3