Craft a musical piece that incorporates the given motif and follows the outlined structure.
X:1
L:1/8
M:4/4
K:G
['BE{A}EF G3 A B E3 (3Bcd gd', 'B3 A'  
X:1
L:1/8
M:4/4
K:G
 BE{A}EF G3 A | B E3 (3Bcd gd | BE{A}EB dedB | ABAF DEFA | BE{A}EF G3 A | B E3 (3Bcd gd | 
 BE{A}EB dedB | ABAF DEFA || B3 A G3 A | B G3 (3Bcd gd | B3 A G2 FG | ABAF DEFA | B3 A G3 A | 
 B G3 (3Bcd gf | gbaf g3 e | dedB A2 GA ||  