Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
M:5/4
K:G
['B d']  
X:1
L:1/8
M:5/4
K:G
 e e e e f e/ B/ d4 | e/ g/ e/ d/ B B d B A4 |[M:4/4] A3/2 G/ A B d B d d | F E D2 d2 B d | 
 A G F E D4 | A/ G/ A/ G/ A/ G/ A/ B/ d/ B/ d/ B/ d2 | F3/2 E/ D2 d2 B d | A G2 E D4 |]  