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
['EFGA B2 BA B2 gf e3 g', 'cAFD G3'  
X:1
L:1/8
M:4/4
K:G
|: G2 GD EFGA | B2 BA B2 gf | e3 g egdB | c3 B-BAFD | G3 D EFGA | B2 BA B2 gf | e3 g egdB |1 
 cAFD G2 (3DEF :|2 cAFD G3 d |: g3 d egde | g2 gf e3 f | g2 gd edBG | c3 B2 AFD | G2 GD EFGA | 
 B2 BA B2 gf | e2 eg egdB |1 cAFD G3 d :|2 cAFD G3 (3DEF :|  