Mocking the algorithm by GuillermoArismendi | cc0.company