Implementing the Iterator design pattern.

Using as example a collection of books.