Created and implemented Cart.