The Immune system mechanism and functions