adds functioning add_to_cart method