Compose melodies by merging the prescribed musical pattern and the supplied theme.
X:1
L:1/8
M:4/4
K:G
['gfgd BGGA BGdG BA A2 gfgd BGAB', 'G2 gfgd BGGA BGdG BA A2 gfgd', 'BGdG eGdG'  
X:1
L:1/8
M:4/4
K:G
 gfgd BGGA | BGdG BA A2 | gfgd BGAB | cAdc BG G2 :| gfgd BGGA | BGdG BA A2 | gfgd BGAB | 
 cAdc BGGA :| BGdG eGdG | BGdG BAAc | BGdG eGdG | BdAc BGGA | BGdG eGdG | BGdG BAAB | GABd eaag | 
 fdef gaba |]  