Write musical works that keep the predetermined structure and weave in the given motif
X:1
L:1/8
M:2/2
K:D
['d3 d cdec d2 d>d d4 f3', 'a3 g'  
X:1
L:1/8
M:2/2
K:D
|: d3 d cdec | d2 d>d d4 | f3 f efge | f2 f>f f4 | d3 f gfed | cAce a4 | e2 (3(fed) c2 TB2 | 
 A2 A>A A4 :: a3 g f^dfa | g2 bg e3 f | g3 f eceg | f2 af d3 A | d>de>e f3 e | f>fg>g a3 g | 
 (3(fga) (3(bag) f2 e2 | d2 d>d d4 :|  