Homework3 updated