MDM Examplecode