Develop melodies adhering to the specified musical structure and using the offered theme.
X:1
L:1/4
M:3/2
K:D
['B A G F3/2 E/ D f', 'A G', 'f g a f3/2 e/ d f'  
X:1
L:1/4
M:3/2
K:D
 B A G | F3/2 E/ D f e d | e A2 B A G | F3/2 E/ D f e d/c/ | d3 :: B A G | F A G B A/B/c/d/ | 
 e E2 B A G | F A G B A B/c/ | d3 :: f g a | f3/2 e/ d f e d | c e2 f g a | f3/2 e/ d f e d/c/ | 
 d3 :|  