Task another lab1

throw new IAE in else case