Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:2/4
K:G
['G>F GA BA GF E2', 'B AG', 'B2 c/B/c d3'  
X:1
L:1/8
M:2/4
K:G
|: D | G>F GA | BA GF | E2 F/E/D | G/B/d/B/ c/A/F/D/ | G>F GA | BA GF | E2 F/E/D | G3 :: B | 
 AG FG | A2 (3A/A/A/ B | AG FE | D2 (3D/D/D/ B | AG FG | A2 (3A/A/A/ B | AG FE | D3 :: A | 
 B2 c/B/c | d3 d/d/ | dc/c/ cB/B/ | BA A2 | B2 c/B/c | d3 B | Ac BA | G3 :|  