function obj = set(obj,prop_name,val)
switch prop_name
case 'Coeff'
	if isa(val, 'double')
		obj.c = val;
	else
		error('The value entered for Coeff is not double arrray');
	end
case 'Name'
	if isa(val, 'char')
		obj.name = val;
	else
		error('The value entered for Name is not a valid string');
	end
otherwise
	error(['Please enter in the name of the polynom,' ...
		' the property that you wish to change, and the new value']);
end