Compose a musical piece that incorporates the given motif and adheres to the specified form.
X:1
L:1/8
Q:3/8=120
M:9/8
K:G
['G GBG', 'g2 g gag', 'BGB BGB'  
X:1
L:1/8
Q:3/8=120
M:9/8
K:G
 g2 G GBG Bcd | G2 G GBG AFD | G2 G GBG Bcd | E2 E EFG AFD :: g2 g gag fed | g2 g gag afd | 
 g2 g gag fed | efg dcB AFD :: BGB BGB c2 d | BGB BGB AFD | BGB BGB c2 d | EFE EFG AFD :|  