getItems method for Cart