Adding restore() method to restore the cart from a saved version