#372: Implementation of txn method

Review, please. (I hope I made the push right this time)
`@todo` format is not correct here, you should add the `#` symbol like so: `@todo #372`. Also, did you forget to update this comment? It says "...describe what should be done next to finish the task"