An SIR model with behavior