Updated cart so that it can be emptied