Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
Q:1/8=128
M:4/4
K:Emin
['B<E B>A']  
X:1
L:1/8
Q:1/8=128
M:4/4
K:Emin
|: e | B<E B>A FD Dd | B<E B>A B<E B>A | B>d A<d FD Dd | B<E B>A GE Ec | B<E B>A FD Dd | 
 B<E B>A B<d e<f | d>B AG FD Dd | B<E B>A GE Eg | e>B e<g dD A>F | eB eg eB eg | e>f ge dD AF | 
 B<E B>A GE Eg | eB eg dD AG/F/ | e>B e<g Be/f/ ge | df Bd FD AG/F/ | B<E B>A GE E :|  