Created new class and thread