Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:3/4
K:G
['e>d Be d/B/A/G/', 'Bd e/d/c/B/', 'G>A Bg d/B/A/G/', 'Bg gB e/f/g/e/'  
X:1
L:1/8
M:3/4
K:G
 e>d Be d/B/A/G/ | Bg gB dg | e>d Be d/B/A/G/ | AeeA c2 :| Bd e/d/c/B/ d/B/A/G/ | Bd e/d/c/B/ dg | 
 Bd e/d/c/B/ d/B/A/G/ | AeeA c2 :| G>A Bg d/B/A/G/ | Bg gB dg | G>A Bg d/B/A/G/ | AeeA c2 :| 
 Bg gB e/f/g/e/ | B/c/d/B/ gB d2 | Bg gB e/f/g/e/ | AeeA c2 :|  