added refactoring sample for CellularAutomata