Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:4/4
K:G
['G2 GF GABc dBeB dBAG BEED EFGA', 'Beed e3 f geaf gfed'  
X:1
L:1/8
M:4/4
K:G
 (3DEF | G2 GF GABc | dBeB dBAG | BEED EFGA | BGAF GFED | G2 GF GABc | dBeB dBAG | BEED EFGA | 
 BGAF G2 :| B2 | Beed e3 f | geaf gfed | Add^c d3 e | fdaf gfed | Beed e3 f | geaf gfed | 
 BAGF EFGA | BGAF G2 :|  