Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/8
M:4/4
K:D
['dAFA D2 FA dfec', 'A2 ce'  
X:1
L:1/8
M:4/4
K:D
 fe | dAFA D2 FA | dfec dcBc | A2 ce A2 ce | fa ec dcBA | dAFA D2 FA | dfec dcBA | g2 gb afdf |1 
 eABc d2 fe ||2 eABc d2 Bc :: dg g2 bg g2 | dgbg agfe | A2 ce A2 ce | fa ec dcBA | dg g2 bg g2 | 
 egbg agfe | g2 gb afdf |1 eABc d2 Bc ||2 eABc d2 fe :|  