completed hw5.2