Added an initialize cart method and a clear cart method.