Added transaction class to allow easy interaction with server