added example for custom constraints