update ex2 part 2