importing the threadmodel class