exercise 2.1 - not sure if i am happy with the implemnetation.
Split off the definitions from the book.