Bookstore in functional style