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