Refactored the Transaction class into more clean and understandable
methods.