tested the transactions.rb...works