thread example
ThreadWrapper fix