Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:6/8
K:D
['d2 B cBA dAF', 'def afa', 'def def dAF'  
X:1
L:1/8
M:6/8
K:D
|: d2 B cBA | dAF FED | d2 B cBA | dAF EFA | def Bcd | ABA F2 E | DED DEF | AFE EFA :: d2 d fdf | 
 aba afe | def afa | bge edB | def afa | bgb a2 g | fed dfe | dAF EFA :: def def | dAF DFA | 
 def def | dAF EFA | def Bcd | ABA F2 E | DED DEF | AFE EFA :|  