Craft a musical piece that incorporates the given motif and follows the outlined structure.
X:1
L:1/8
M:4/4
K:G
['G2 (Bd) gdBd cBAB cedc BGAF GBdg', 'egdg egdg'  
X:1
L:1/8
M:4/4
K:G
 D2 |S G2 (Bd) gdBd | cBAB cedc | BGAF GBdg | ecAF GFED | G2 (Bd) gdBd | cBAB cedc | BGAF GBdg | 
 ecAF G4 |] b2 ag b2 ag | egdg egdg | b2 ag b2 ag | egfa gfga | bgaa bgag | egdg egdg | bgaf gfed | 
 egfa gedBS |]  