changed add_to_cart to class