Main.java - removed redundant newBook() Book.java - Added a condition if the book is not overdue BookFactory.java - Removed empty newBook() - Added “throw new NullPointerException()” on both getBook() if Book is not found