An exercise to implement a one dimension cellular automaton