Added code toCart method, warning this has not been tested yet