class as data type