Update practice problems from eloquent javascript ch 4