class stores constraints and implements constraint interface. Goal of class is to organize the constraints and keep them in one place.