Develop a musical piece using the given motif and adhere to the outlined structure.
X:1
L:1/8
M:4/4
K:G
['', 'gf e2', 'B^d e3 f gf e^d e6 EF'  
X:1
L:1/8
M:4/4
K:G
 EF |: G2 GA B2 gf | e2 dB A2 GA | BA BG EG FA |1 G6 EF :|2 G6 ef || g2 gf e2 fg | ag fe d2 B^d | 
 e3 f gf e^d | e6 EF | G2 GA B2 gf | e2 dB A2 GA | BA BG EG FA | G6 ||  