changed structure and commented norvig noobness