Update to lesson4 code