A numerical approach to studying cell dynamics