addind simple thread example