basic frame of trainer class