refining the definition of classes