some examples from K and R