addign setCartCommand and changing the cart type to enums