A Dynamical Model of Cell Differentiation