Create thread.class.php