homework3 for week4