Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
Q:1/8=232
M:4/4
K:G
['GF GA GB AG FG', 'ed ef gf ed eg fa g2'  
X:1
L:1/8
Q:1/8=232
M:4/4
K:G
|: D | GF GA GB AG | FG AB c2 BA | GF GA GB AG | FG AF D2 EF | GF GA GB AG | FG AB c2 BA | 
 Bc dB ec AF | G2 GG G3 :: d | ed ef gf ed | eg fa g2 dc | Bc dB cB AG | FG AF D2 Bd | 
 ed ef gf ed | eg fa g2 dc | Bc dB ec AF | G2 GG G3 :|  