Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
M:4/4
K:Emin
['E3 F G3 A BcBA', 'e2 e2'  
X:1
L:1/8
M:4/4
K:Emin
|: B,D | E3 F G3 A | BcBA G2 E2 | D2 DE F2 FG | AFDF A2 GF | E3 F G3 A | BcBA GFGA | BABc BAGF | 
 E2 D2 E2 :: (3Bcd | e2 e2 e2 fe | dBGA B2 Bc | BAFG A2 AB | AGED E2 (3Bcd | e2 e2 e2 ge | 
 dBGA B2 GA | BABc BAGF | E2 D2 E2 :|  