Implement part 2 of Ex 2