Compose music that abides by the dictated structure and encompass the given theme
X:1
L:1/8
M:2/4
K:D
['A,B,DE D2 DD A,B,DE FE D2 CD', 'D4 (A d3) d3 B A2 de'  
X:1
L:1/8
M:2/4
K:D
 A,B,DE D2 DD | A,B,DE FE D2 | CD E2 E2 (A,B, | C2) E2 GF E2 | EF A2 A2 AA | BAFG A2 gf | 
 (3fgf e2 (3ded B2 | AFEF D4 :: (A d3) d3 B | A2 de fe d2 | cdef e2 ed | c2 ef gf e2 | faff edBd | 
 BAFG A2 AA | (3(fgf e2) (3(ded B2) | AFEF D4 :|  