part 1 of hw5 done