Making shopping cart with slight error