05 Data-input - Task 6 - Fix algorithm.