Develop melodies adhering to the specified musical structure and using the offered theme.
X:1
L:1/8
M:9/8
K:D
['f/g/af geg fed', 'cea ecA', 'cAA c2 A'  
X:1
L:1/8
M:9/8
K:D
 g2 | f/g/af geg fed | f/g/af gec d2 g | f/g/af geg fed | cdc dBG d2 G :: cea ecA c2 A | 
 cAA c2 A cAc | ecA cea ecA | Bc/B/A BGG dBG :: cAA cAA c2 A | cAA c2 A cAc | ecA cAA cAA | 
 B>cB/A/ BGG dBG :|  