Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:4/4
K:C
['B2 dB DFBd c=BcA', 'Acfa g^fgd BcdB dg^fa g3 a bga^f'  
X:1
L:1/8
M:4/4
K:C
 B2 dB DFBd | c=BcA FAcA | B2 dB DFBd | c=BcA BGGA | BDGA BDGB | ADFA c2 =Bc | d g3 dcBd |1 
 c=BcF DGGA :|2 c=BcF DGBd || g2 dg Bdge | f2 cf Acfa | g^fgd BcdB | dg^fa g3 a | bga^f gfdc | 
 BdBG D2 FA | d g3 dcBd |1 cBc=F DGBd :|2 cBcF DGGA ||  