Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
Q:1/8=180
M:6/8
K:G
['dcB def']  
X:1
L:1/8
Q:1/8=180
M:6/8
K:G
|: B | G2 B dcB | def gdc | BGB dcB | cBc A2 c | G2 B dcB | def gdc | BGB dcB | def g3 | b3 g3 | 
 a^ga f=ga | g3 e3 | fef def | b3 g3 | a^ga f=ga | g3 e3 | def g2 :|  