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 DG', 'BDAD EDEF GFGA (3B^cd ce d2 ef'  
X:1
L:1/8
M:4/4
K:G
 G2 DG BGDG | AGFG AB c2 | BAGF GAB^c | deed cAFA | BG G2 DG G2 | FGAB cAFA | B2 GB cBAG |1 
 FDEF G4 :|2 FDEF G2 (3B^cd || g2 fg e^cAG | (3FED AD BDAD | EDEF GFGA | (3B^cd ce d2 ef | 
 fee^d e^cAG | (3FED AD BDAD | G2 FE DGBd |1 cAFD G2 (3B^cd :|2 cAFA G3 B ||  