update coding exercise