Craft a musical piece that incorporates the given motif and follows the outlined structure.
X:1
L:1/8
M:4/4
K:D
['BBf(e e2) BA', 'e3 d efdc'  
X:1
L:1/8
M:4/4
K:D
|: f3 a f2 ed | efdB BBf(e | e2) BA BBf(e | e2) BA BABc | d2 BA BBfe | d2 BA A2 ed | 
 f3 ef a f/e/d |1 e2 ed effe :|2 e2 ed efdc |: d3 B AAAB | dAde f2 ed | f2 fe fa f/e/d | 
 e3 d efdc | d3 B AAAB | d2 de f2 ed | f3 e fa f/e/d |1 e3 d efdc :|2 e2 ed effe ||  