Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/16
M:2/4
K:D
['a2>g2 fgaf d2dc', 'e2fe dcBA defg', "b4 ^abc'a b4"  
X:1
L:1/16
M:2/4
K:D
 fg | a2>g2 fgaf | d2dc dcde | fege dcBA | ^defe =dcBA | a2>g2 fgaf | d2dc dcdf | fege dcBc | 
 d2f2d2 |] !fermata!z2 | e2fe dcBA | defg a2af | g2ge f2fd | e^def e4 | e2fe dcBA | defg a2a2 | 
 f2f2 a^gfg | a2c'2"^D.C."a2 |] f2 | b4 ^abc'a | b4 f2e2 | dcBc dBfd | c2c2c2f2 | b4 ^abc'a | 
 b4 e2e2 | dcBc dBc^A | B2B2"^D.C."B2 |]  