added tasks from 6th and 4th homeworks