Thousands of teachers walk out demanding pay, funding increases