modified Homework3