Refactoring, modified print books so it will print dynamically.
Added test for printing books and code that passes that.