Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/4
Q:1/4=100
M:5/4
K:G
['A A']  
X:1
L:1/4
Q:1/4=100
M:5/4
K:G
 D | G E D G G | A A A B (B/c/) |[M:3/2] d d c2 (B3/2 G/) |[M:5/4] A A G2 D/ D/ | G E D G G/ G/ | 
 A A A B (B/c/) |[M:3/2] d d c2 (B3/2 G/) |[M:5/4] A A G2 B | c d e c A |[M:3/2] B c d B z d | 
[M:5/4] c B A G E | F G D2 D | G E D G G | A A A B (B/c/) |[M:3/2] d d c2 B3/2 G/ | A A G3 |]  