Added thread example