Multithread class