Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
M:2/2
K:G
['BGGA G2 ED EAAB A2 GE DEGA', 'dgga g2 ed eaab a2 ge dega'  
X:1
L:1/8
M:2/2
K:G
 BGGA G2 ED | EAAB A2 GE | DEGA BABd | (3efg dB cBAG | BGGA G2 ED | EAAB A2 GE | DEGA BABd | 
 (3efg dc BG G2 || dgga g2 ed | eaab a2 ge | dega bagf | (3efg (3dcB cBAc | dgga g2 ed | 
 eaab a2 ge | dega bagf | (3gfe dc BG G2 ||  