Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:2/4
K:D
['d>B AF', 'f>d fa eg f/g/f/e/'  
X:1
L:1/8
M:2/4
K:D
 d>B AF | A2 AF/A/ | B/c/d/B/ AF | E2 E>B | d>B AF | Ad f/g/f/e/ | dB AF/A/ | D2 D2 :: f>d fa | 
 eg f/g/f/e/ | fd fa | f2{a} fe/e/ | f>d fa | eg f/g/f/e/ | dB AF/A/ | D2 D2 :|  