Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
Q:1/8=180
M:4/4
K:G
['G3 c BAGB dgfa gedc B2 Ac', 'gfed ecAc dBGB cBAG FAFD'  
X:1
L:1/8
Q:1/8=180
M:4/4
K:G
 G3 c BAGB | dgfa gedc | B2 Ac BGAF | DFAF GFED |"^5" G3 c BAGB | dgfa gedc | B2 Ac BGAF | 
 DFAF G4 :|"^9" g2 af gdBd | egfa gfed | ecAc dBGB | cBAG FAFD |"^13" g2 af gdBd | egfa g3 d | 
 Bdef gfag | bgef g2 gf |"^17" (3efg dg Bgdg | egfa gfed | ecAc dBGB | cBAG FAFD |"^21" G3 c BAGB | 
 dgfa gedc | B2 Ac BGAF | DFAF G4 |]  