Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:9/8
K:G
['G3 BAG', 'edd cAG'  
X:1
L:1/8
M:9/8
K:G
|: G3 BAG cAF | G3 BAG FED | G2 G BAG (3Bcd e | =fed cAF G2 D :: edd cAG FED | d2 B cAG F2 d | 
 edd cAG FGA | B3 cAF G2 d :|  