Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:6/8
K:A
['ABA A2', 'A2 c ded dcB cdc cBA BAF'  
X:1
L:1/8
M:6/8
K:A
 AFE EFG | ABA A2 c | BAF d2 B | cAF F2 B | AFE E2 F | ABA A2 d | cBc ecA | B3 A2 || c | ded dcB | 
 cdc cBA | BAF d2 A | cAF F2 B | AFE EFG | ABA A2 d | cBc ecA | B3 A2 ||  