Second task of first assignment