Compose a piece of music that follows the specified structure and incorporates the given theme.
X:1
L:1/8
M:9/8
K:D
['Add dcd', 'B AFA'  
X:1
L:1/8
M:9/8
K:D
"^Cheerfully" A | Add dcd efg | afd Bee cA>A | Add dcd Bcd | efe dcB A>FG | Add dcd efg | 
 afd Bee cA>A | Add dcd efg | afa gec d2 || B | AFA GEc d2 B | AFA GFE D2 B | AFA GEc d2 e | 
 f<ff gec d2 B | AFA GEc d2 B | AFA GFE D2 B | AFA GE>a !fermata!a2 g | fdf gec d2 ||  