finish part 2 of ex2