Implemented setClass()