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=112
M:4/4
K:G
['D>EG>G G>DG>B', 'b/a/ g>eg>B B<AA>a g>eg>B d>eg>a (b/a/g/f/) g>d', 'd>eg>g g>dg>b a>gb>a{a} g2'  
X:1
L:1/8
Q:1/4=112
M:4/4
K:G
"^Allegretto" D>EG>G G>DG>B | A>GB>G F>E E2 | DEGG GDGB | A11BA AGG z | D>EG>G G>DG>B | 
 AGBG FE TE2 | D>EG>G G>DG>B | AGBA{A} G2 G z8 | z8 :|S b/a/ | g>eg>B B<AA>a | g>eg>B d>eg>a | 
 (b/a/g/f/) g>d G>AB>G | A>Bg>e d>AB>A | A>BG>D E/E/E TE2 | D>EG>G G2 GB | A>GB>A{A} G2 G!fine! || 
 e | d>eg>g g>fg>b | a>gb>g{f} e2 e>d | d>eg>g g>dg>b | a>gb>a{a} g2 g>e | d>dg>g g>dg>a | 
 a>gb>g{f} e2 e>g | d>eg>g g>dg>b | a>gb>a{a} g2 g!D.S.! ||  