Make class compatible