Updating code for ex01 (minor)