Added a method on the book controller to add item to cart