using Stack; StackBooksOfList stack = new StackBooksOfList(); Book book1 = new Book(); book1.name = "Rybuf1"; stack.push(book1); stack.printAll(); stack.pop();