Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/4
M:3/4
K:G
['c B', 'd g2 d'  
X:1
L:1/4
M:3/4
K:G
 d g d | g2 d | e3/2 d/ c | B G2 | B d2 | A c B | A3/2 G/ A | G3 :: F2 G | A2 B | c3/2 d/ B | A3 | 
 G B c | d2 d | e3/2 f/ g | f3 | g d B | d B G | e c A | a f d | g2 d | g2 d | e3/2 d/ c | B G2 :|  