Craft a musical piece that incorporates the given motif and follows the outlined structure.
X:1
L:1/8
M:4/4
K:Bmin
['', 'E2 eg', '', 'bafa agfd gfeB d2 de fddc Bdfa'  
X:1
L:1/8
M:4/4
K:Bmin
 eg |: fedf edBc | dedB BA F2 | fedf edBd | eGGF E2 eg | fe (3def edcd | deBA AG F2 | EFAB dedB |1 
 G2 GF E2 eg :|2 G2 GF G2 GA || B2 Bc (3dcB de |: fbba bafd | ed'd'c' bafa | agfd gfeB | 
 d2 de fddc | Bdfa agfd |1 ebbc' d'baf | effd cA F2- | F2 Bc (3dcB de :|2 ebba gafe | deed B2 eg ||  