Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
M:9/8
K:D
['ecA afd'  
X:1
L:1/8
M:9/8
K:D
"Bm" B3 BdB"D" fef |"Bm" B3 BdB"A" cBA |"Bm" B3 BdB f2 g |"D" a3 def"A" ecA ::"D" afd def"G" g2 b | 
"D" afd def"A" ecA |"D" afd def"G" ge/f/g |"Bm" fed edB"A" dBA :|  