added quantity and updated totalPrice function for each book