return true/false in functions. implement regression testing.