Construct a musical piece that follows the designated lettered structure and integrates the provided motif throughout.
X:1
L:1/8
M:2/2
K:Emin
['(3(FED) FA A2 BEEF GAB^c', '^defg afdf']  
X:1
L:1/8
M:2/2
K:Emin
 BEE^c dcdB | A2 (3(FED) FA A2 | BEEF GAB^c | d^cdB e2 d=c | BEE^c dcdB | AD (3(FED) FA A2 | 
 BEEF GAB^c | dBA=c BE E2 ||{f} e^def gfge | ^defg afdf | e^def gfe^c | dBA=c BE E2 | 
{f} e^def gfe^c | ^defg afdf | g2 f^d e^c=dA | (3(B^cd) A=c BE E2 ||  