simple ruby implementing raw transaction