Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/8
M:4/4
K:D
['', 'AFAB AFED AFAd f2 fa gefd edBA', 'gefd edBA'  
X:1
L:1/8
M:4/4
K:D
 DF |: AFAB AFED | AFAd f2 fa | gefd edBA | dBAF EFDF | AFAB AFED | AFAd f2 fa | gefd edBA |1 
 agfe d2 DF :|2 agfe dAde |: fded BdAG | FDFA dfaf | gefd edBA | dBAF EFDF | AFAB AFED | 
 AFAd f2 fa | gefd edBA |1 agfe dAde :|2 agfe d2 ||  