Fixed example for Threads