Appeals Court Affirms Firing of Teacher