Update cart.rb with suggestion on reduce/inject