added logic to our shopping cart