Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/8
M:2/2
K:D
['E A,3', 'fd{e}dc dfaf edcd efge'  
X:1
L:1/8
M:2/2
K:D
 DE | F2 AF DEFD | E A,3 E A,3 | FGAF DEFA | (3Bcd ec dBAG | FGAF DEFD | E A,3 E A,3 | FGAF DEFA | 
 (3Bcd ec d2 || de | fd{e}dc dfaf | edcd efge | fd{e}dc dfag | (3fga eg fdde | fd{e}dc dfaf | 
 edcd efge | dfaf g2 ag | (3fgf ec dBAG ||  