ShoppingCart exercise made in class