Added checking instance class