How does a stem cell differentiate into beta cells?