Develop melodies adhering to the specified musical structure and using the offered theme.
X:1
L:1/4
M:4/4
K:D
['D D', 'F E', 'A A3/2 G/ F G'  
X:1
L:1/4
M:4/4
K:D
 D D D D | D2 A, A, | D D E E | F4 | F F F F | F2 E F | A G F E | F4 || F F E F | G2 G2 | E E D E | 
 F2 F2 | D2 A, A, | B,2 G G | F E D C | D3 A || A3/2 G/ F G | A3 A | A3/2 G/ F G | A4 | D2 A, A, | 
 B,2 G G | F E D C | D4 |]  