Create ex1.d

Example 1 -  We model the example from Qt