implemented getBooksByDepartment() in BookHelper.java