Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
Q:1/4=130
M:6/8
K:G
['D GAG BcB AFA c2 e dBG', '(g2 d) (e2 d)'  
X:1
L:1/8
Q:1/4=130
M:6/8
K:G
"_vb" D | GAG BcB | AFA c2 e | dBG GcB | AGF G2 D | GAG BcB | AFA c2 e | dBG c2 B | AGF G2 || d | 
 (g2 d) (e2 d) | (g2 d) (e2 d) | def gfe | dcB A2 g | edc Bcd | dcB ABc | dBG c2 B | AGF G2 |]  