Generated book model and pages controller