Modified code to add ObjectClass to schema