Eloquent JavaScript: Chapter 4 Exercises