Generate music with the following musical form in terms and the given motif.
X:1
L:1/8
M:4/4
K:G
['G2 BG BddB |{d} cBcd efge GBdG', 'gdBG g2 (3aga bggd edcB A2 G2'  
X:1
L:1/8
M:4/4
K:G
|: G2 BG BddB |{d} cBcd efge | GBdG Bdgd | ecBc A2 G2 :| g2 (3aga bggd |{f} edef gdBG | 
 g2 (3aga bggd | edcB A2 G2 | bgaf gfed | egfa gedB | GBAc Bdgd | ecBc A2 G2 ||  