No need for copy and paste
Adding process_transaction method
Removing some duplicate code