Create a musical piece that includes the provided motif while adhering to the necessary musical structure.
X:1
L:1/8
M:4/4
K:G
['GBDG BDGB dG (3Bcd', 'G2 b^a b2 ba bagf e^de>f g2'  
X:1
L:1/8
M:4/4
K:G
 BA | GBDG BDGB | dG (3Bcd g2 ag | fedB cAFA | GBAG FD (3DEF | GBDG BDGB | dG (3Bcd g^ga=g | 
 fedB cAFA | (3GAG F>A G2 :| b^a | b2 ba bagf | e^de>f g2 ^g2 | a2 ab agfg | (3fed (3^cde d2 ab | 
 c'afd (3Bcd ef | gdad b2 ag | fedB cAFA | (3GAG F>A G2 :|  