Compose a piece incorporating the provided motif while adhering to the given musical structure.
X:1
L:1/8
Q:1/4=140
M:4/4
K:Dmin
['d4 d3 e ^c3 =B Acde f4', 'g2 g2'  
X:1
L:1/8
Q:1/4=140
M:4/4
K:Dmin
 d4 d3 e | ^c3 =B Acde | f4 f3 g | e3 d c2 f2 | efef gfge | f4- f4 || fg | a2 aa aaaa | 
 abag f2 ef | g2 g2 g2 g2 | gagf e4 | f3 e dfed | ^c3 B A2 fg | a3 e e3 d | d4 d2 |]  