assignment 2- part 8-9