Terrarium Example from Eloquent JavaScript book