Completed working example

Added examples of complex constraints and some additional attributes
required to make them work