Exercises and Code from several books