implement transaction/2
Merge pull request #2 from Joe-noh/transaction

implement transaction/2