Compose music that abides by the dictated structure and encompass the given theme
X:1
L:1/8
M:6/8
K:D
['d2 d ded c<e z efg |{g}', 'd2 A'  
X:1
L:1/8
M:6/8
K:D
"^Lively" d2 d ded | c<e z efg |{g} fed fed | f<a z z3 | a2 f{a} gfe | dcB ABc | dFA dFA | d3 d2 :: 
 A | fa/b/a{a} gfe | d2 A d2 A | bag fed | c<e z z2 e | af/g/a bg/a/b | af/g/a geg | 
{g} fed{B} cAc | d3 d2 :|  