Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:4/4
K:D
['', 'A,DDC DFED CEAB c2 cd', 'dcAB cded cAGE D2 (3EDC'  
X:1
L:1/8
M:4/4
K:D
 (3DCB, |: A,DDC DFED | CEAB c2 cd | edce dcAB | cAGE FD (3EDB, | A,DDC DFED | CEAB c2 cd | 
 edcA GECD | EDDC D2 z2 :| cBcd cBcA | dcde dcAB | cded cAGE | D2 (3EDC DCB,A, | cBcd cBcA | 
 dcde d2 cd | edfd edcA | (3dcd (3edc ddcd | edfd edcA | (3dcd (3edc dcAB | cded cAGE | 
 D2 (3EDC DCB,^A, | A,DDC DFED | CEAB c2 cd | edce dcAB | cAGE FD (3EDB, | A,DDC DFED | 
 CEAB c2 cd | edcA GECD | EDDC D2 z2 ||  