solve hw5