This is the solution of homework week 1 ~ week 3