Develop melodies adhering to the specified musical structure and using the offered theme.
X:1
L:1/8
M:4/4
K:D
['A>B AB/c/ d>e', 'fd ad', 'ad ge B/g/f/e/ ge ag/a/ fa ef'  
X:1
L:1/8
M:4/4
K:D
 dB | A>B AB/c/ d>e f>e | dB BA/(B/ d)B Bd/B/ | A>B AB/c/ d>e fd | ed a>f e2 d2 :| 
{g} fd ad{g} fd ad | ge B/g/f/e/ ge ag/a/ | fd ad fd ad | ga/g/ fa/f/{f} e2 d2 ||{g} fd ad fd ad | 
 ge B/g/f/e/ ge ag/a/ | fa ef df Bd | Ad f/a/g/f/{f} e2 d2 |]  