Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/16
M:2/4
K:G
['d2g2B2d2 G2B2D2G2 FGAB', '(3[A,F][A,F][A,F] [A,F]2 (3[FA][FA][FA] [FA]2 dAdf a4 gfge'  
X:1
L:1/16
M:2/4
K:G
 (Bc) | d2g2B2d2 | G2B2D2G2 | FGAB c2(BA) | GABc d2(Bc) | d2g2B2d2 | G2B2D2G2 | FGAB cAFD | 
 G2G2 G2 :: (3[A,F][A,F][A,F] [A,F]2 (3[FA][FA][FA] [FA]2 | dAdf a4 | gfge cABc | fefd A4 | 
 (3[A,F][A,F][A,F] [A,F]2 (3[FA][FA][FA] [FA]2 | dAdf a4 | gfge cABc | d2f2 d2 :|  