This is my code for the CDM APP