Refactor transaction class

Not being used.