Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:4/4
K:G
['gf g2 G2 G2 dc Bd g2', 'G2 dc Bdgd Bdgd e2 c2 c2'  
X:1
L:1/8
M:4/4
K:G
 gf | g2 G2 G2 dc | Bd g2 gbag | a2 A2 A2 AG | FA d2 d2 ef | gfed edcB | cBAG GFED | 
 EG FA F GB Ac | B2 G2 G2 :: dc | Bdgd Bdgd | e2 c2 c2 ed | ^ceae ceae | f2 d2 d2 B2 | c2 e2 edcB | 
 cBAG GFED | EG FA F GB Ac | B2 G2 G2 :|  