added Transaction constructor method