Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
Q:1/4=120
M:4/4
K:G
['(3(Bcd) (G<d)', 'B<d e>fg>e', 'd<G B2 (B<d)'  
X:1
L:1/8
Q:1/4=120
M:4/4
K:G
|:"^Strathspey." ud | (3(Bcd) (G<d) B2 (B<d) | (3(Bcd) (G<d) B<A A<d | (3(Bcd) (G<d) B2 (B<d) | 
 ve>vfug>ue d<B B :| ud | ve>vfug>ue d<B vb>ua | g>ed>B c<A Ad | e>fg>e d<B g>a | 
 b/a/g/f/ g>e d<B B<d | e>fg>e d>b a<b | g>ed>B B<A A<B | G>DB,>D G>A B<d | e>fg>e d<B B |: ud | 
 ve>uG d<G B2 (B<d) | e>G d<G B<A A<d | e>G d<G B2 (B<d) | e>fg>e d<B B :|  