Homework3, Tasks 5 and 6 are done.