add class MyConstraints