Playing with algorithms for pedagogical purposes