To pratice algorithm.