Craft a musical piece that abides by the prescribed structural guidelines and the given theme.
X:1
L:1/8
M:4/4
K:D
['A,CDE FGAB (3=cBcDE', '(3.d.d.dfd adfd'  
X:1
L:1/8
M:4/4
K:D
 A,CDE FGAB | (3=cBcDE FAAB | (3dcd cd BdAG | FDDB, =CEDC | A,CDE FGAB | (3=cBcDE FGAB | 
 (3dcd cd BdAF | EA,CE DA, A,2 | A,CDE FGAB | (3=cBcDE FGAB | (3.d.d.d cd (3Bcd AG | FDDB, =CEDC | 
 D2 DE FGAB | (3=cBc DE FGAB | (3dcB (3cBA BdAF | EDCE D3 d || d2 fd Adfd | (3.d.d.dfd eB B2 | 
 (3.d.d.dfd adfd | =cAGE D2 FA | d2 fd adfd | d-def (3gfe fg | afge (3fgaed | (3cBA (3GFE DAFA | 
 ddfd adfd | gdfd edBA | (3.d.d.dfd adfd | =cAGE DAFA | (3.d.d.dfd adfd | d-def g2 (3.g.g.g | 
 afge fded | cAGE D=CA,C ||  