Cells can have different functions. The guard cells of a plant leaf regulate the movement of gases.