Construct a musical piece that follows the designated lettered structure and integrates the provided motif throughout.
X:1
L:1/8
Q:1/8=128
M:4/4
K:A
['A2 a>e']  
X:1
L:1/8
Q:1/8=128
M:4/4
K:A
|: A2 a>e f>c e>c | (3(def) (3(edc) (3(BcA) (3(GBE) | A2 a>e f>c e>c | d<f e>c A2- A>c | 
 e<e a>e f<f b>a | g>b e'>d' c'>a e>d | c<e A>c d<f b>a | (3(gaf) (3(eaA) B2 A>B | c2 A>c E>e c>e | 
 d2 B>d E>B d>f | e2 c>a f>d B>A | G>B e>d cA ag/f/ | e2 c>e A>c e>=g | (3(fed) (3(cBA) GB E>G | 
 A2 a>e (3(fce) (3(ABc) | (3(def) (3(gfg) a<A A2 :|  