added task 4 from 4th homework