Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
M:2/4
K:G
['eA BA', 'ed ef'  
X:1
L:1/8
M:2/4
K:G
|: eA BA | eA BA | eA BA | G2 GB/d/ | eA BA | eA BA | Be dB | A2 A2 :: ed ef | ga ga/g/ | ed ef | 
 a z g2 | ed ef | ga g/a/g/e/ | dB gB | A2 A2 :|  