Added constraint package and EventConstraint inferface with one class implementing it