modified km tutorial