Compose a musical piece that incorporates the given motif and adheres to the specified form.
X:1
L:1/16
M:2/4
K:C
['gagf efed c2eg a2f2 d2f2 B2d2', 'd2d2 b2b2 agfe d2Bd cBAc BAGB'  
X:1
L:1/16
M:2/4
K:C
 gagf efed | c2eg a2f2 | d2f2 B2d2 | cBce g4 | gagf efed | c2eg a2f2 | d2f2 B2d2 | cBce c4 :: 
[K:G] d2d2 b2b2 | agfe d2Bd | cBAc BAGB | A2dc B2G2 | d2d2 b2b2 | agfe d2Bd | cBAc BAGB | 
 A2A2 G4 :|  