Created CellFactory class to manage Cell objects.