Example implementation and exercices solution for the K&R.