Implement part 3 of Ex 2