Introduction to compartment model