complete hw5 part b