Multi-thread code with thread subclass;