Exercises and examples from the C book