Construct musical works adhering to the required format and the supplied musical theme.
X:1
L:1/8
M:4/4
K:G
['G>A B2', 'z g dega b2 (a>g) (ag)(ab) d2'  
X:1
L:1/8
M:4/4
K:G
 G>A | B2 (g>e) (d<B) (AB) | G2 d>e d2 G>A | B2 (ge) (d<B) A>G | B2 e>f e2 z || g | dega b2 (a>g) | 
 (ag)(ab) d2 (ga) | (g/a/b) ag e2 ge | dB A>G G2 ||  