Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
Q:1/8=160
M:4/4
K:G
['(Bd) e2', 'E2 (GA) BGEG BGEG BAGF E2 (FG)'  
X:1
L:1/8
Q:1/8=160
M:4/4
K:G
 (Bd) | e2 ed efge | d2 B2 B2 (dB) | ABde faef | d2 A2 A2 (Bd) | e2 ef g2 fe | dBGB d2 (cB) | 
 AGFE DEFA | G2 E2 E2 :: (GA) | BGEG BGEG | BAGF E2 (FG) | AFDF AFDF | AGFE D2 (EF) | 
 GFGB g2 (fe) | dBGB d2 (cB) | AGFE DEFA | G2 E2 E2 :|  