Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
M:4/4
K:G
['DGGF GBAG FGAB c2 Bc d2 eg', 'BG G2 FGAB c3 A dcAG'  
X:1
L:1/8
M:4/4
K:G
 GF | DGGF GBAG | FGAB c2 Bc | d2 eg fdcA | BGAF GFEF | DGGF GBAG | FGAB c2 Bc | d2 eg fdcA | 
 AGFA G2 :: Bd | g2 gf gfdc | BG G2 FGAB | c3 A dcAG | FGAB cdef | g2 gf gedc | BG G2 FGAB | 
 c3 A dcAG | FGAF G2 :|  