Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:3/4
K:G
['(3dcB G>E- E>E F>G D>B,- B,>B,', 'E>E F>G'  
X:1
L:1/8
M:3/4
K:G
|: d/ (3dcB | G>E- E>E F>G | D>B,- B,>B, C>B, | A,>G- G>G- (3GAG | F>D- D>d- (3dcB | G>E- E>E F>G | 
 D>B,- B,>B, C>D | E>G F2 D>E | E2- E3/2 :: B,/ C>D | E2- E>E F>G | D2- D>E F>G | C2- C>E F>G | 
 B,2- B,>D F>G | A2- A>D G>A | B2- B>G A>B | c2 c>B c>e | d2 d2- (3dcB | G>E- E>E F>G | 
 D>B,- B,>B, C>B, | A,>G- G>G- (3GAG | F>D- D>d- (3dcB | G>E- E>E F>G | D>B,- B,>B, C>D | 
 E>G F2 D>E | E2- E3/2 :|  