Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
M:4/4
K:G
['d2 dB A2 B2 d3']  
X:1
L:1/8
M:4/4
K:G
 G3 A BGAG | E2 G2 G3 A | GABc d2 dB | A2 B2 d3 d | e2 e2 d2 dB | A2 B2 d3 B | A2 GA BG AG | 
 E2 G2 G4 ||  