Add the original code
begin to code the TS Search method