Added enum to Transaction class to indicate transaction type