Creating a BookList class to replace the static function
Created BookList object