Compose music with the following musical form, using the given motif as a basis.
X:1
L:1/8
M:4/4
K:G
['B2 BA BAGA', 'G4 ageg dega bagb agef g2 ga'  
X:1
L:1/8
M:4/4
K:G
 B2 BA BAGA | B2 BA BAGA | Bd d2 dBGA | BAAG A2 BA | GABd g2 gd | egdB A2 GA | Bd d2 dBAB | 
 G2 FA G4 :| ageg dega | bagb agef | g2 ga gedB | BAAG A2 BA | GABd g2 gd | egdB ABGA | Bdde dBAB | 
 G2 FA G4 :|  