Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/4
M:4/4
K:G
['B/A/B/c/ d G']  
X:1
L:1/4
M:4/4
K:G
 B/A/B/c/ d G | G A F G | E/F/ G D G | c B/G/ B A | B/A/B/c/ d G | G A F G | E/F/ G D G | 
 G/A/ F G2 | F/E/F/G/ A D | D A A G | B/A/B/c/ d G | c B/G/ B A | B/A/B/c/ d G | G A F G | 
 E/F/ G D G | G/A/ F G2 |]  