Working through examples in book