Hw3 Solution, comments added