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
['g2 f2 [Ge]>dB>d e2 E2 E2 A>G', 'B>A G2 G>A B>AB>c'  
X:1
L:1/8
M:4/4
K:G
|: g2 f2 [Ge]>dB>d | e2 E2 E2 A>G | FA D2 D2 B>A | [DG]>F[DG]>B [Fd]3 f | g2 f2 [Ge]>dB>d | 
 e2 E2 E2 A>G | F4- FDE>F | [B,G]4- [B,G]4 :: [DB]2 B>A G2 G>A | B>AB>c d3 B | 
 [Ec]2 c>B [EA]2 A>B | c>Bc>d [ce]3 c | [^DB]2 B>A G2 G>A | B>AB>c [Dd]2 F2 | 
 [Gg]2 [GB]2 [^CA]2 [=CF]2 | [B,G]4- [B,G]4 :|  