D: Implement cart