add successful_transaction? method to transaction class