Compose music that abides by the dictated structure and encompass the given theme
X:1
L:1/8
M:2/2
K:G
['e>A (3AAA g2 (fg)', 'ed^cd eaa^g efgb |1 afge d2 ^cd'  
X:1
L:1/8
M:2/2
K:G
|: e>A (3AAA g2 (fg) | eAAc BG G2 | e>A (3AAA g2 (fg) |1 afge dgfg :|2 afge !fermata!d2 (^cd) |: 
 eaa^g ef=gf | eaa^g ed^cd | eaa^g efgb |1 afge d2 ^cd :|2 afge dg"_D.C."fg |]  