Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
M:4/4
K:Dmix
['D2 AD (3EFG AB', 'G2 Adde'  
X:1
L:1/8
M:4/4
K:Dmix
 D2 AD (3EFG AB | cAdB cAGE | D2 AD (3EFG AB |1 cAGE EDCE :|2 cAGE EDFA || d3 e dc A2 | 
 (3Bcd ed cA G2 | Adde dcAB | cAGE EDFA | d3 e dc A2 | (3Bcd ed cA G2 | Adde =f^fed | cAGE EDCE || 
 Te!p!!p! e ave e a ba uaud bac e A!p!a a | cAGE EDAF ||  