create KS class