Implemented the transaction factory and the transaction objects.