Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
M:2/2
K:D
['cAA=c B2 AdFA FDD g'  
X:1
L:1/8
M:2/2
K:D
|: f |"D" d2 AB/c/ dAFD |"Em" GEed"A" cAA=c |"G" B2 GB"D" AdFA |"Em" GE"A7"AG"D" FDD :| g | 
"D" f2 df"A" eace |"Bm" dBed"A" cAA=c |"G" B2 GB"D" AdFA |"Em" GB"A7"AG"D" FDD || g | 
"D" fefd"A" eace |"Bm" dBed"A" cAA=c |"G" BABG"D" FGA=c |"G" BG"A7"ge"D" fdd |]  