Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/8
M:2/4
K:D
['z z'  
X:1
L:1/8
M:2/4
K:D
"D" !fermata!d3 z |"A" !fermata!c3 z |"G" !fermata!B3 z |"D" !fermata!A3 z |"A7" GB EG |"D" FA DF | 
"A7" EG CE |"D" D2 z2 ::"D" FA D2 | FA D2 | FA B>A |"A7" GA C2 | GA C2 | GA C2 |1 GA B>A | 
"D" FA D2 :|2 G>G FE |"D" D2 z2 |]  