Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/4
M:3/4
K:G
['G A']  
X:1
L:1/4
M:3/4
K:G
 D | G A B | G A B | c B c | A2 | A2 | A2 | A B c | A2 D | G A B | G A B | c B c | A2 z | d d d | 
 e2 ^c | d3 | d2 c | B A G | A G F | G2 | G2 | G2 | G2 c | B A G | A G F | G2 ||  