Modified ShoppingCart so that it uses a bean-like object instead of the
messy Object[] hack we had before.