upload week3 code by chenhao