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=120
M:4/4
K:G
['d dBce dg z g g>fge d2', 'F>d dBce dgfg agfe d3 d dc{c}BA', 'G3 g aefd gBcd eABc d dBce', 'e dBA>G [bB]2 [bB][aA][bB][aA] [gG]2'  
X:1
L:1/8
Q:1/4=120
M:4/4
K:G
"^Spirited" d | dBce dg z g | g>fge d2 z d | dcAF GBdg | gecA G2{FAG} F>d || dBce dgfg | 
 agfe d3 d | dc{c}BA Ggfe | dBB>A G3 || g | aefd gBcd | eABc !fermata!F3 d | dBce dgfg | 
 gfef !fermata!g3 e || dBA>G !fermata!G2 [bB]2 | [bB][aA][bB][aA] [gG]2 z |]  