Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
Q:1/8=160
M:9/8
K:G
['B c2', 'c2 d'  
X:1
L:1/8
Q:1/8=160
M:9/8
K:G
 B | c2 B c2 A GED | c2 B c2 d e2 d | c2 B c2 A GED | DED DEG A2 :| B | c2 d ecA GED | 
 c2 d ece g2 e | c2 d ecA GED | DED DEG A2 :|  