Redone Threads to one single thread class