Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:6/8
K:G
['D G2', 'g2 f'  
X:1
L:1/8
M:6/8
K:G
|: D | G2 G E2 D | G2 B d2 B | e2 A A2 G | E2 A A2 E | GAG- GED | G2 B d^cd | e2 B AGE | G3 G2 :: 
 B | d2 g g2 f | e2 g d2 B | e2 A A2 B | g2 f edB | d2 g- gfg | eaf gfe | d2 B AGE | G3- G2 :|  