Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
M:3/4
K:G
['B3/2B/4A/4 Bc dD', 'BD GD'  
X:1
L:1/8
M:3/4
K:G
|: G2 d2{Bc} BA | B3 (3B/c/B/ AG | G2 e2 ed | d3/2e/4f/4 g3/2f/4e/4 d>c | B3/2B/4A/4 Bc dD | 
 B3/2B/4A/4 Bc dD | A3/2B/4c/4 B2 AD | A7/2 B/4A/4 G2 | [Ec]2 c/d/e/f/ g3/2f/4e/4 | 
 dg B7/4B/4 A>G | G6 |{/A} G4- GD :| GD dD BD | GD G/A/B/c/ dD | GD dD BD | GD G/A/B/c/ dG | 
 GE Eg fG | GE Ee d/c/B/A/ | ce dG c/B/A/G/ | B2 A7/2 G/4F/4 | GD dD BD | GD G/A/B/c/ dG | 
 GD dD BD | GD Dd dG | GE Eg fG | GE Ee d/c/B/A/ | ce dG c/B/A/G/ | B2 A7/2 G/4F/4 :| G6 ||  