Craft a musical piece that incorporates the given motif and follows the outlined structure.
X:1
L:1/8
M:5/8
K:Bmin
['d2 B', 'Bc ddB cd', 'c/d/e d2 B'  
X:1
L:1/8
M:5/8
K:Bmin
|: F | Bd f2 f | ef d3 | Bd fgf | ef d2 B | de d2 B | d/c/B A3 | c/d/e d2 B | cA B2 :| F | 
 Bd e2 e | eg/f/ eed | Bc ddB | cd eed | Bc ddB | cd e2 d | Bc ddB | cd B3 | B2 B3 || c/d/e d2 B | 
 cB A3 | c/d/e d2 B | cA B3 | B2 B3 | c/d/e d2 B | cB A3 | c/d/e d2 B | cA B2 ||  