added second task in homework #9