Teachers get new two year contract