Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
M:4/4
K:G
['GA B4 B4 Bc (3BAG A2 GF', 'Bd g4 g4 ga (3gfe f4 e4'  
X:1
L:1/8
M:4/4
K:G
 GA | B4 B4 | Bc (3BAG A2 GF | E2 D2 E2 F2 | G4 G2 GA | B4 B4 | Bc (3BAG A2 GF | E2 D2 E2 F2 | 
 G4 G2 Bd || g4 g4 | ga (3gfe f4 | e4 efed | B4 B2 GA | B4 B4 | Bc (3BAG A2 GF | E2 D2 E2 F2 | 
 G4 G2 GA ||  