Craft a musical piece that incorporates the given motif and follows the outlined structure.
X:1
L:1/8
M:4/4
K:G
['BA G2 BG A2 dc Bgfe d2', 'G2 A/B/c d2 d>B d2 gd e2'  
X:1
L:1/8
M:4/4
K:G
|: BA | G2 BG A2 dc | Bgfe d2 cB | c2 ec B2 g>B | A2 D>D D2 BA | GDBG ADdc | B>gfe de/d/ cB | 
 e2 ce f2 d/e/f | g2 GG G2 :: A/B/c | d2 d>B d2 gd | e2 e>c e2 a/g/f/e/ | d2- dc Bc/B/ GB | 
 A2 D>D D2 c/B/A/B/ | GD GA/B/ AD Ad/c/ | Bg g/f/e d2- dc/B/ | e2- ec/e/ f2 df | gG- GG G2 :|  