Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
M:4/4
K:D
['DFEF D2 Ad', 'f2 fe'  
X:1
L:1/8
M:4/4
K:D
|: DFEF D2 Ad | cAAG EFGE | DFEF D2 Ad | cAGE FD D2 | DFEF D2 Ad | cAAG EFGE | d2 dc dfed | 
 cAGE D4 :: f2 fe f2 fe | fefg afde | f2 fe fage | fdec Ad d2 | f2 fe f2 fe | fefg afde | 
 fage d2 ed | cAAG EFGE :|  