Form a musical piece based on the provided motif while observing the defined structure.
X:1
L:1/8
Q:1/8=180
M:4/4
K:G
['gedB G3 A BAGB AEGE DEGA', 'AGEG Bd d2 edge', '(3Bcd g2 dg egde g2 bg agef'  
X:1
L:1/8
Q:1/8=180
M:4/4
K:G
 gedB G3 A | BAGB AEGE | DEGA Bd d2 | edgd edef |"^5" gedB G3 A | BAGB AEGE | DEGA (3Bcd ge | 
 dBAG EG G2 :|"^9" G3 B ABGE | DGBG AGEG | Bd d2 edge | dBGA BA A2 |"^13" G3 B ABGE | DGBG AGEG | 
 Bd d2 edge | dBAc BG G2 :|"^17" g2 dg egde | g2 bg agef | g2 dg egdB | A2 GA BG (3Bcd | 
"^21" g2 dg egde | g2 bg agef | gfga gfed | egfa g4 :|  