added third task in homework #9