Revised HW#6

Revised HW#6 based on Dr.Huang's suggestions.