refactoring transaction to AccountTransaxction