Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/8
M:4/4
K:G
['D>GBG dGBG DFAF cFAF DGBG dGBG ABcA', '(3agf gbag'  
X:1
L:1/8
M:4/4
K:G
 D>GBG dGBG | DFAF cFAF | DGBG dGBG | ABcA BG G2 :| g2 (3agf gbag | fede fgaf | g2 (3agf gbag | 
 fdcA G2 Bd | g2 (3agf gbag | fede fgac' | (3bag (3agf gbag | fdcA BG G2 ||  