Quick-thinking teacher helps kids get out of house on fire