Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
M:2/4
K:G
['D2 DA/G/']  
X:1
L:1/8
M:2/4
K:G
 AG/E/ G2 | EG/E/ D2 | DA/G/ D2 | DA/G/ E2 | BAE/G/D/E/ | BE E2 | DGE/G/EGE | E/G/E D2 D2 BEDE | 
 ADEG | DGE/G/EGE |]  