Craft a musical work based on the specified structure and given theme.
X:1
L:1/8
M:2/4
K:D
['A4 F4 AA AA F4 B4 G2'  
X:1
L:1/8
M:2/4
K:D
"D" A4 | F4 | AA AA | F4 | A4"G" B4 |"D" A2"A" G2 |"D" (F2"A" E2) |:"D" DD"A" EE |"D" DD"A" E2 | 
"D" D2"G" G2 |1"A" FE"D" F2 :|2"A" FE"D" D2 |]  