Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:4/4
K:C
['G2 (BG)', '(ef) gfed'  
X:1
L:1/8
M:4/4
K:C
 |[M:2/2][K:G] G2 (BG) dGBG | G2 (BG) EAAF | G2 (BG) dGBd | cABG (EG) G2 | G2 (BG) dGBG | 
 dGBG EAAF | G2 (Bc) dege | dBAG (EG) G2 || gfed (3(Bcd) (ef) | gfed eaaf | gfed BcdB | cABG EGGd | 
 gfed (3(Bcd) (ef) | gfed (ea) a2 | bgaf gedB | cABG (EG) G2 |]  