HW week1

Could solve most of the problems.