Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/4
M:4/4
K:G
['D G G/A/ B B/c/ d ^c/e/']  
X:1
L:1/4
M:4/4
K:G
 D | G G/A/ B B/c/ | d ^c/e/ d G | c G/c/ e c/e/ | g3/2 e/ d B | B2 A e | f2 d d/d/ | e2 ^c2 | 
 d z2 A | c3/2 B/ A c | e3/2 d/ c c | B3/2 c/ d g | g f/e/ d c | B2 B A | G3 |]  