New approach to get class name