Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:4/4
K:D
['G2 Bc', 'd3 e'  
X:1
L:1/8
M:4/4
K:D
 G2 Bc d3 e | cA A2 cAdB | G2 Bc dBed | cAFA cdcA | G2 Bc d3 e | cA A2 cdeg | fdec dAFD | 
 Eded cAFA :: Ggge d3 e | ceae fBBA | Ggge degb | ^gaAB cdAF | =Ggge d3 e | cA A2 cdeg | 
 fdec dAFD | Eded cAFA :|  