update week2 code by chenhao
Merge pull request #3 from raulchen/master

update week2 code by chenhao