Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
M:2/2
K:Bb
['B2 b2 G2 g2 (fg)fe dc B2', 'B2 Bd (f2 f2)'  
X:1
L:1/8
M:2/2
K:Bb
 B2 b2 G2 g2 | (fg)fe dc B2 | de f2 ef g2 | f2 a2 b2 z2 :: B2 Bd (f2 f2) | geec cAAF | 
 B2 Bd (f2 f2) | gecA B2 F2 | B2 Bd (f2 f2) | geec cAAF | Bcde fgab | gecA B2 z2 :|  