A start on exercise 2.3