Construct a piece of music using the designated motif as the basis, while ensuring the required form is followed.
X:1
L:1/8
M:4/4
K:G
['G2 g2 ggdg eaag ageg gded BdBA', 'G2 BG dGBG'  
X:1
L:1/8
M:4/4
K:G
 G2 g2 ggdg | eaag ageg | gded BdBA | GBAG E2 D2 :| G2 BG dGBG | A2 Bd e2 ge | G2 BG dGBG | 
 ABAG E2 D2 :|  