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
['D2 FA', 'a2 fa dafa'  
X:1
L:1/8
M:4/4
K:D
 D2 FA D2 FA | dfed cABc | d2 cA (3BcdAF | GBAF GFEF | D2 FA DAFA | dfed cABc | d2 cA (3BcdAF | 
 GBAG FD D2 :| a2 fa dafa | gfed BdAf | a2 fa dafa | bgeg fd d2 | a2 fa dafa | gfed BdAf | 
 afec dBAF |1 GBAG FD D2 :|  