HW_2, Task_3: version for checking