Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:4/4
K:D
['D2 FA FAde fafd A2 f2 cABc'  
X:1
L:1/8
M:4/4
K:D
"D" D2 FA FAde | fafd A2 f2 |"A" gfed"A7" cABc |"D" dcde fedA |"D" D2 FA FAde | fafd A2 f2 | 
"A" gfed"A7" cABc |"D" d2 f2 d2 A2 ::"D" a2 fd Adfa |"A" gecB Acef |"A" g2 ec"A7" Aceg | 
"D" fedf"A7" eAdf |"D" a2 fd Adfa |"A" gecB Acef |"A" g2 ec"A7" Aceg |"A7" fdec"D" d4 :|  