added Transaction constructor and deconstrutor