print method added to Transaction