made changes to Constraint class. Filled in methods.