Adding add, total functionality to Cart class