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
['G>E D>E G2 g>e d>B', '(3def g>a e>d e<g d>B A2 G>E'  
X:1
L:1/8
M:4/4
K:G
|: G>E |"G" D>E G2"C" G2 g>e |"G" d>B A<G"D7" A2 G>E |"G" D>E G2"C" G2 g>e |"D7" d>B A<B"G" G2 :| | 
 (3def |"G" g>a g>f"C" e>d e<g |"G" d>B A<G"D7" A2 (3def |"G" g>a g>f"C" e>d e<g | 
"D7" d>B A<B"G" G2 || | (3def |"G" g>a g>f"C" e>d e<g |"G" d>B A<G"D7" A2 G>E | 
"G" D>E G2"C" G2 g>e |"D7" d>B A<B"G" G2 |]  