Compose melodies based on the specified pattern and provided motif.
X:1
L:1/8
M:4/4
K:G
['GE E2 cEGE DGBG A3 B', 'G2 Bd efge'  
X:1
L:1/8
M:4/4
K:G
 DGBG A2 BA | GE E2 cEGE | DGBG A3 B | GEFD EGGA | B3 d A3 F | GE E2 cEGE | DGBG A3 B | 
 GEED EGGD || G2 Bd efge | dBAB dBAB | G2 Bd efge | dBAG EGGD | G2 Bd efge | dB B2 dega | 
 (3bag ag egde | gedB AGED ||  