Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
M:3/4
K:G
['gf ed', 'Af g2'  
X:1
L:1/8
M:3/4
K:G
|: gf ed | B2 BA GA | B2 gf ed | B^A B=A G/A/B | c2 cB cd | e2 ed cB | A2 AB cd | e^d e=d ef |1 
 ed :|2 g2 |: GB dg | f2 fe dB | GB eB dB | AB dg Af | g2 GB dg | f2 fe d^c | ed Bd Gd |1 
 Ad Fd Af | g2 :|2 Ad Fd Dd | G2 ||  