Compose musical pieces adhering to the prearranged pattern, utilizing the provided motif.
X:1
L:1/4
M:2/4
K:G
['g g f/g/ a g g/d/', 'd e d/B/ A A B/G/ d/B/'  
X:1
L:1/4
M:2/4
K:G
 g g | f/g/ a | g g/d/ | B d :: e d/B/ | A A | B/G/ d/B/ | G D :|  