Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
Q:1/4=170
M:2/4
K:G
['d3 e dBAG FGAB A2 Bc d3', 'dBAG dBAG'  
X:1
L:1/8
Q:1/4=170
M:2/4
K:G
 d3 e | dBAG | FGAB | A2 Bc | d3 g | dBAG | DG G2 :: dBAG | dBAG | defg | d2 g2 | dBAG | dBAG | 
 FGAB | A4 | dBAG | dBAG | Bcde | d2 g2 | d3 e | dBAG | DG G2 :|  