Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/16
Q:1/4=120
M:2/4
K:G
['(DE) G2>A2 B2d2 (e2g2) d2BA G2ED G2G2', '(Bd) g2f2 e2fg a2f2 d2Bd e2dB', 'g6 (Bd) g2f2 e2(fg) a2f2 d2(Bd) e2>(d2'  
X:1
L:1/16
Q:1/4=120
M:2/4
K:G
"^With spirit" (DE) | G2>A2 B2d2 | (e2g2) d2BA | G2ED G2G2 | G6 !fermata!x2 |] | (Bd) | g2f2 e2fg | 
 a2f2 d2Bd | e2dB (defa) | g6 || (Bd) | g2f2 e2(fg) | a2f2 d2(Bd) | e2>(d2 BABd) | e6 |]  