Compose melodies by merging the prescribed musical pattern and the supplied theme.
X:1
L:1/8
M:4/4
K:D
['G2 GD EDEG AGAB d2 Bd eged', 'B3 d'  
X:1
L:1/8
M:4/4
K:D
|: G2 GD EDEG | AGAB d2 Bd | eged BAGA | BAGE EDEF | G2 GD EDEG | AGAB d2 Bd | eged BAGA | 
 BAGE ED D2 :: eaag efge | dBBA B3 d | eB B2 gBfB | eBBA B3 d | eaag efge | dBBA B3 d | eged BAGA | 
 BAGE ED D2 :|  