finish hw5.1