Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/16
M:2/4
K:G
['d2ed B2ec dBGA B2>c2 dgfe dcBA', 'g2 Bd e2e2f2f2 e2e2B2>d2 e2>f2 gfga b2bb', 'B2d2B2d2 gfga b4 d2d2A2A2 B4'  
X:1
L:1/16
M:2/4
K:G
O Bc | d2ed B2ec | dBGA B2>c2 | dgfe dcBA | GFGA B2Bc | d2ed B2ec | dBGA B2>c2 | dgfe dcBA | 
 GABd g2 || Bd | e2e2f2f2 | e2e2B2>d2 | e2>f2 gfga | b2bb bagf | e2e2f2f2 | e2e2 B2ga | bagf agfe | 
 dgfe d2 || c2 | B2d2B2d2 | gfga b4 | d2d2A2A2 | B4 G2dc | B2d2B2d2 | gfga b4 | d2d2A2A2 | 
 B4 G2>d2 | e4 e2d2 | e4 e2d2 | c2{d}cB c2e2 | dcBA G2>c2 | e4 e2f2 | g2g2 f2e2 | defg agfg | 
 (e4 e2)!D.C.! ||  