Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
Q:1/4=120
M:4/4
K:G
['dBGB dgfg ecGc egfg defg afdf', 'g2 ga bagb agfa gfge dBGB (3dcB'  
X:1
L:1/8
Q:1/4=120
M:4/4
K:G
 Bc | dBGB dgfg | ecGc egfg | defg afdf | (3gba (3gfe dcBc | dBGB dgfg | ecGc egfg | defg afdf | 
 g2 b2 g2 :: ga | bagb agfa | gfge dBGB | (3dcB (3dcB A2 fa | (3aba (3gfe dcBc | dBGB dgfg | 
 ecGc egfg | defg afdf | g2 b2 g2 :|  