Code produced for exercises in Eloquent Javascript 2nd ed.