Create purchase.rb