add class var books to books method and set default value to name