Updated Purchase.rb