A model of indirect effect of vaccination