Fixed indentation and chang a method to startThread()