Develop melodies adhering to the specified musical structure and using the offered theme.
X:1
L:1/4
M:2/4
K:D
['D2 D2', 'A F', 'F G'  
X:1
L:1/4
M:2/4
K:D
 D2 D2 | D2 E2 | c3/2 B/ (A2 | A) D F A | D2 D2 | D2 E2 | c3/2 B/ (A2 | A) F G A | 
 (3B/c/B/ G (3B/c/B/ G | B2 c2 | F/G/F/E/ (D2 | D) F G A | (3B/c/B/ G (3B/c/B/ G | B2 c2 |1 
 F/G/F/E/ (D2 | D4) :|2 F/G/F/E/ (D2 | D) D F A |: d c A c | c B G B | B G A F | D2 D A | A F G E | 
 C2 C B | B G A F | D D F A | d c A c | c B G B | B G A F | D2 D A | A F G E | D D E F ||1 (D4 | 
 D) D F A :|2 (D4 | D2) F G |: A2 G A | B2 A G | A/B/A/G/ (F2 | F) A G A | B3/2 A/ (B2 | 
 B) A/G/ F G | A3/2 G/ (A2 | A2) F G | A2 G A | B2 A G | A/B/A/G/ (F2 | F) A G A | B3/2 A/ (B2 | 
 B) c/B/ A G |1 (F4 | F2) F G :|2 (F4 | F4) ||  