based on the solution, modified the homework3