Create a composition based on the provided motif while adhering to the necessary musical structure.
X:1
L:1/8
M:4/4
K:Dmix
['c2 Bd', 'EDD e fdd^c defg ad d2 bdad'  
X:1
L:1/8
M:4/4
K:Dmix
 e | fdd^c d=cAB | c2 Bd cAGE | D2 ED EGAB | c2 Bd cAGe | fdd^c d=cAB | c2 Bd cAGE | D2 ED EGAB | 
 cAGE EDD :| e | fdd^c defg | ad d2 bdad | eccB cdef | gd d2 adgd | fdd^c d=cAB | c2 Bd cAGE | 
 D2 ED EGAB | cAGE EDD :|  