Construct a piece of music using the designated motif as the basis, while ensuring the required form is followed.
X:1
L:1/8
Q:1/8=180
M:12/8
K:G
['G2 B BAB def g2', 'g2 g gfg a2'  
X:1
L:1/8
Q:1/8=180
M:12/8
K:G
 G2 B BAB def g2 e | dBB B2 A dBB B2 A | G2 B BAB def g2 b | afd dgb a3 g3 :| g2 g gfg a2 a aba | 
 g2 g gfg a2 e e2 f | g2 g gfg a2 a aba | gfe dgb a3 g3 :|  