Create KM.cpp