add common method getClass