Applying filters to books list. Removing unnecessary lines of code