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
['B A']  
X:1
L:1/8
M:4/4
K:G
 A A d e/ d/ B A E G | B A G D/ E/ D4 | A B A A d A/ G/ E G | B A G D/ E/ D4 | A G A2 A d c B | 
 d A/ d/ E D G3 F/ E/ | A B A A d A/ G/ E G | B A G D/ E/ D4 | A B A d G3 F/ E/ | 
 A B A A d A/ G/ E G | B A G D/ E/ D4 |]  