Updated hw3 part c