Exercises from Eloquent Javascript book