Cart should not be passed by reference in data() method