homework for part 3 added