TransactionProcessor class filled with logics