Update new code and example