rename class thread to class Thread and change variables in the class