Construct musical works adhering to the required format and the supplied musical theme.
X:1
L:1/8
M:6/8
K:G
['D G3 GAB', 'B3 dBd ege'  
X:1
L:1/8
M:6/8
K:G
 D |:"^~~" G3 GAB |"^~~" A3 ABd | edd gdd | edB dBA |"^~~" G3 GAB |"^~~" A3 ABd | edd gdB |1 
 AGF G2 D :|2 AGF G2 A |:"^~~" B3 dBd | ege dBG |"^~~" B3 dBG |"^~~" A3 AGA |"^~~" B3 dBd | 
 ege dBd |"^~~" g3 aga | bgf g2 A :|  