Compose music that abides by the dictated structure and encompass the given theme
X:1
L:1/8
M:4/4
K:D
['A2 (AB) A2', 'b2 b2'  
X:1
L:1/8
M:4/4
K:D
|: A2 (AB) A2 (FG) | AFAB A3 B | AGF(E D)EFG | A2 (AB) A2 (dc) | B2 (Bd) B2 (Ac) | BABc B2 (dB) | 
 AGFE DEFA | B2 (Bd) B2 b2 | bag(b a)feg | fedf e2 (de) | fedB B(AdF) | A2 (AB) A2 (dc) | 
 (BA)(B d)Bd | (e2 d)(e f2) ed | B(ABc) d2 F2 |1 E4 D2 FG :|2 E4 D2 (fg) |: a2 (ab) a2 (fg) | 
 agab a2 (fg) | agf(e d)efg | a2 (ab) a2 (fa) | b2 b2 b2 (fa) | bafa b2 (bg) | agf(e d)efa | 
 b2 (ba) b2 (fa) | baf(b a)feg | fedf e2 (de) | f(edB) BAdF | A2 (AB) A2 (dc) | (B2 A)(B d2) cd | 
 e2 (de) f2 (ed) | B(ABc) (d2 F2) |1 E4 D2 fg :|2 E4 D4 ||  