Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:2/2
K:A
['(AB) ceec B2 cB AcBA', 'aefa e2'  
X:1
L:1/8
M:2/2
K:A
 (AB) | ceec B2 cB | AcBA F2 EF | A2 cA BAFF | EC E2 A2 (AB) | ceec B2 cB | AcBA F4 | ABcA BcAF | 
 EC E2 A2 :| (fa-) | aefa e2 cB | AABA FEFA- | AAcA BAFF | EC E2 A2 (3(e/f/g/a) | aefa e2 c2 | 
 AABA F2 A2- | A2 Ac BAFF | ECEE A2 ||  