Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
M:2/4
K:G
['GB dg b2 g2'  
X:1
L:1/8
M:2/4
K:G
|:"G" GB dg | b2 g2 | gf/g/ ag |"C" Tf2 e2 |"D" AB cd | ed cA |1"G" GB dg | b2 g2 :|2"G" G2 g2 | 
 g2 z2 |:"D" dd ed |"G" B2 G2 | GF/G/ AG |"C" TF2 E2 |"D" AB cd | ed cA |1"G" GB dg | b2 g2 :|2 
"G" G2 g2 | g2 z2 |]  