updated with Exercises from Ch. 6