Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
Q:1/8=300
M:2/4
K:D
['BA de/e/ f2 g/f/e/f/ gB', 'ce fe'  
X:1
L:1/8
Q:1/8=300
M:2/4
K:D
 A/B/ | FA BA | de/e/ f2 | g/f/e/f/ gB | ed Bd | FG/A/ BA | de/e/ f2 g/f/e/f/ gB | ed d2 :| 
 ef/e/ ce | fe a2 | e/f/g/e/ ce | fe cA | e/f/g/e/ ce | fe a2 | ef/e/ dB | c/B/A A2 :|  