Homework3(part 1)