K main CPP file