Unit classes extends Thread