create Transaction class