got shopping cart logic to work