Skeleton for thread class