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:D
['G2 AG FDAF']  
X:1
L:1/8
M:4/4
K:D
 FGAG FD(3DDD | FDAF G2 AG | FDAF GFED | BdcA G2 AG | FDAF GFED | FDAF G2 AG | FDAF GABc | 
 dBcA G2 FG | A3 B cABG | A2 AB c2 dc | A3 B cABG | BdcA G2 FG | A3 B cABG | A2 AB c2 Bc | 
 dBcA BGAG | Adde dcAG |]  