Compose melodies based on the specified pattern and provided motif.
X:1
L:1/8
Q:1/8=160
M:6/8
K:G
['e2 d', 'G>AB Bdd BAA'  
X:1
L:1/8
Q:1/8=160
M:6/8
K:G
 d | gfg e2 d | Bdd Bdd | g>fg e2 d | BAA A2 d | gfg e2 d | Bdd Bdd | g>fg e2 d | BAA A2 || B | 
 G>AB Bdd | BAA Bdd | G>AB Bdd | BAA A2 d | G>AB Bdd | BAA Bdd | gfg e2 d | BAA A2 ||  