Fix bug with K, add examples