Beta and gamma sir model