Threads with class object.