Added third task of second homework