added multithreading example