Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/16
M:3/8
K:C
['B2-BAG2 F2 G4', 'd2ded2 d2 c4'  
X:1
L:1/16
M:3/8
K:C
 B2-BAG2 | F2 G4 | A2>B2c2 | dedcBA | B2-BAG2 | F2 G4 | A2-ABc2 | d6 :| d2ded2 | d2 c4 | ABcAdc | 
 B2 A4 | d2ded2 | d2 c4 | AcB2A2 | G6 :|  