Exercises and examples from K&R