Add value comparison to Transaction class.