finish hw5.2