add example constr2.scala

demo of Constraints in Model