Craft a musical work based on the specified structure and given theme.
X:1
L:1/8
Q:1/4=120
M:6/8
K:D
['d2 d c2 d', 'f2 f fdf'  
X:1
L:1/8
Q:1/4=120
M:6/8
K:D
|: A | d2 d c2 d | e2 e efg | d2 d c2 d | ecA A2 A | d2 d c2 d | e>fe efg | afd gec | d2 d d2 :: 
 e | f2 f fdf | g2 g geg | f2 f fdf | ecA A2 e | f2 f fdf | g2 g geg | afd gec | d2 d d2 :|  