Completed hw5.