Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/16
M:2/4
K:G
['d2g2B2g2 f2AB cBAB', 'GFG2 A2E2F2D2'  
X:1
L:1/16
M:2/4
K:G
 Bc | d2g2B2g2 | f2AB cBAB | c2a2A2a2 | g2Bc dcBc | d2g2B2g2 | f2AB cBAB | c2a2A2f2 |1 g4 g2 :|2 
 g4 g4 |: Bcde dcBA | B2G2 GFG2 | A2E2F2D2 | GFGA gedc | Bcde dBcA | B2G2 GFG2 | A2E2F2D2 | 
 G2B2 G4 :|  