Develop melodies adhering to the specified musical structure and using the offered theme.
X:1
L:1/8
M:3/4
K:D
['z B4 g>f e>d', 'Aa Aa'  
X:1
L:1/8
M:3/4
K:D
 AB/c/ d2 ef | !>!g z B4 | g>f e>d cB/c/ | d>B A>G F>G | AB/c/ d2 e>f | !>!g z B4 | 
 g>f e>d (3PcBc | d2 D3 z :|{/A} d>f A>a A>a | A>a a>g g>b | b>g e>d cB/c/ | d>B A>G FA | 
 d>f Aa Aa | Aa ag gb | bg ed (3cBc | d2 D3 z ||  