How to make a cart to store objects?