added methods to ShoppingCart