Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
M:4/4
K:Ddor
['D2 ED ADED A2 GE', 'ed aded'  
X:1
L:1/8
M:4/4
K:Ddor
 D2 ED ADED | A2 GE CEGE | D2 ED ADED | A2 GE ED D2 :: d2 ed aded | c3 e g3 e | d3 ed aded | 
 cAGc EDDA | d2 ed aded | cBce g3 e | defe d2 cB | cAGc ED D2 :|  