Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
M:4/4
K:F
['bab(e ga)gf efe(d cd)eg aga(e fg)fc dc=Bd']  
X:1
L:1/8
M:4/4
K:F
 bab(e ga)gf | efe(d cd)eg | aga(e fg)fc | dc=Bd c2 Ac | cde(f g^f)ge | age(d cd)cE | 
 FGAc- c(dc)A | dcA(d cd)cA |]  