Added dependency injection for Books resource