Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/8
M:3/4
K:D
['f2 B4 e2 A4'  
X:1
L:1/8
M:3/4
K:D
 de |"D" f2 fe d2 | d2 de d2 |"G" B4 A2 |"D" F4 A2 |"G" BA Bc d2 |"A" e4 de |"^(D)" f4"A7" e2 | 
"D" d4 f2 |"G" B4 e2 |"D" A4 d2 |"A7" F4 E2 |"D" D4 f2 |"G" B4 e2 |"A" A4 dc |"D" d4"^(A)" dc | 
"D" d4 |] de |"D" f2 fe d2 | ed ef a2 |"G" b4 a2 |"D" f4 ed |"A" e4 a2 |"D" f4 ed |"G" d4 B2 | 
"A7" B4 BA |"A7" F4 E2 |"D" D4 f2 |"G" B4 e2 |"D" A4 a2 |"G" ba gf ed |"A" e4 dc |"G" d4 dc | 
"D" d4 |]  