new update on codes of lecture 9