Construct musical works adhering to the required format and the supplied musical theme.
X:1
L:1/8
M:9/8
K:G
['G2 G GD=F E2 D B2 c', 'd^cd edc d3 cdc B2 c', 'E2 D'  
X:1
L:1/8
M:9/8
K:G
 G2 G GD=F E2 D | B2 c dBG A2 D | G2 G GD=F E2 D | B2 c A2 F G3 :| d^cd edc d3 | cdc B2 c e2 ^c | 
 d^cd edc d3 | cdc B2 c e2 ^c || d2 d BAG A2 c | B2 B BAG E2 D | G2 G GD=F E2 D | B2 c A2 F G3 |]  