adds display method for constraint class