Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:4/4
K:G
['z E2']  
X:1
L:1/8
M:4/4
K:G
 B6 A2 | G D3- D4 | z B2 AG F =F2- | F z _B2 (A G3) | z E2 AG C3 | z E2 A G2 E D- | D8 | z8 | 
 E2 A G- G2 C2 | z E2 A G2 E D- | D8 | z8 | B8 | G4 (A D3) | G8 | z8 |]  