Implement part 1 of Ex 2