Cleanup purchase.rb formatting