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
['GB,DG BGcA dg (3fga g2 dg', 'AFdA fdaf e^deg B2 ba'  
X:1
L:1/8
M:4/4
K:G
 (3DEF | GB,DG BGcA | dg (3fga g2 dg | e2 ce d2 bd | caBg ADFA | GB,DG BGcA | dg (3fga g2 dg | 
 (3efg ec ADBA | G2 GF G2 :|[K:D] FG | AFdA fdaf | e^deg B2 ba | gecA Ecba | afdA F^EFG | 
 AFdA fdaf | e^deg B2 ba | (3^gba =ge cAfe | d2 dc d2 :|  