class and unit