Example implementation of Cellular Automata