Plаintiff appeals from a judgment of dismissal entered in favor of defendant Pacific Gas and Electric Company, a corporation, after its general demurrer was sustained without leave to amend.
By her second amended complaint, plаintiff seeks to recover for personal injuries sustained while on the premises owned by defendant Zanes, and alleges defendant Zanes “did rent certain portions of said premises to tenants” and plaintiff was a tenant of defendant Zanes. At or about 2 p. m. on October 28, 1959, defendant corporation undertook to set and adjust an automatic electrical timing switch controlling the illumination of common hallways on the property owned by defendant Zanes, and it knew or should have known the lights controlled *776 by the automatic switch were the sole means of illuminating the common hallways, and by reason of any inadequate illumination the hallways would be dangerous for persons to walk upon; that defendant corporation did so carelеssly and negligently set and adjust the automatic switch the lights did not turn on until approximately 9 :15 p. m. on October 28, 1959, which was about an hour after plaintiff fell. By reason of the lights not being turned on, which failure was a result of defendant corporation’s negligence, the common hallways were rendered dangerous for persons to walk upon. At about 8 p. m. on October 28, 1959, plaintiff had occasion to use the common hallway adjacent to the front door of the building, and as a proximate result of the negligence plaintiff fell to the floor sustaining personal injuries. Plaintiff generally sets forth her injuries and the treatment rendered her, and seeks special and general damages.
On this appeal plaintiff contends there was a statutory duty owed her by defendant corporation, citing section 1708, Civil Code, and section 17820, Health and Safety Code, and, independent of statutory duty, defendant corporation owed a duty to plaintiff which it failed to perform. Defendant contends (1) there was no privity of contract between it and plaintiff, and thus no duty was imposed, and (2) plaintiff failed to allege a breach of duty arising in tort solely because of the gratuitous adjustment of the automatic switch.
An accepted principle of law in a case in the posture of the instant case is that the allegations of fact must be taken to be true
(Carlson
v.
Lindauer,
It is clear from the pleadings that defendant corporation, on the afternoon before the accident, did undertake to set and adjust the automаtic electrical switch which controlled the illumination in the hallways. Whether defendant corporation did this work under an agreement between defendant Zanes and itself or otherwise is not decisive of this appeal while the case is at thе pleading stage. As pleaded, the careless and negligent doing of the act of adjustment would affect plaintiff, since it was known by defendant corporation that the premises were occupied by tenants and the premises had commоn hallways. It follows that defendant corporation knew the common hallways would be used by tenants of the premises. Defendant was bound to know from the type of instrumentality it was servicing that any failure on its part to properly adjust or set the instrument would сreate a probable *777 danger to tenants using the hallways. Plaintiff was one of the tenants entitled to use the hallway.
The adjustment of the automatic switch was at 2 p. m. on the day of the accident. The accident occurred after dark and аt approximately 8 p. m. In point of time the events occurred too closely to be overlooked in a review of the pleadings to determine whether there was a duty owed on the part of defendant corporation. Prom the аllegations of the complaint, the chain of causation was present.
Before the decision in
Biakanja
v.
Irving,
“The determination whether in a specific ease the defendant will be held liable to a third person not in privity is a matter of policy and involves the balancing of various factors, among which are the extent to which the transaction was intended to affect the plaintiff, the foreseeability of harm to him, the degree of certainty that the plaintiff suffered injury, the closeness of the connection between the defendant’s conduct and the injury suffered, the mоral blame attached to the defendant’s conduct, and the policy of preventing future harm. (Cf. Prosser, Torts (2d ed. 1955), §§ 36, 88, 107, pp. 168, 172, 544-545, 747; 2 Harper and James, Torts (1956), § 18.6, p. 1052.)”
Defendant corporation" must be bound by this rule despite its citation of numerous cases decidеd before the Biakanja case. The result of the Biakanja case is that there need not be found a privity of contract between plaintiff and the defendant corporation in order to find liability.
In plaintiff’s complaint, the' elements set forth in the Biakanja case are present. The pleadings are sufficient against an attack by general demurrer.
However, if it is argued that the Biakanja case arose *778 out of a situation where there was an original agreement between the notary public and the decedent testator, and thеrefore the holding of the Biakanja case is to be confined to those or similar facts only, defendant must be bound by rules governing tort actions arising out of negligence. Section 1708, Civil Code, reads: “Every person is bound, without contract, to abstain from injuring thе person or property of another, or infringing upon any of his rights.”
Whatever the instigating cause, defendant corporation undertook to do a job of adjusting the automatic switch. In so adjusting, it was bound to do it properly and not carelessly or nеgligently. The plaintiff has alleged it was done negligently and carelessly and defendant corporation knew or should have known the consequences of its misfeasance.
“Liability for ‘misfeasance’, then, may extend to any person to whom harm may reasonably be anticipated as a result of the defendant’s conduct, or perhaps even beyond . . .” (Prosser, Torts [2d ed.] §38, pp. 183, 184.)
Under a similar set of facts involving a tenant, landlord and Pacific Gas and Electric Company, the court, without reference to the relationship of the parties, found a cаuse of action was stated.
(Roy
v.
Smith,
Whatever rights defendant corporation had to do the work it undertook to do, it was bound to exercise those rights in such a manner as not to interfere with the rights of others.
(Donnelly
v.
Hufschmidt,
Defendant corporation’s contention is that the face of the сomplaint reflects that plaintiff was contributorily negligent and this was a proximate cause of the accident.
In
Waltemath
v.
Western States Realty Co.,
9 Cal.App.2d
*779
583 [
Defendant corporation, in effect, is asking the court to determine upon the pleadings and as a matter of law that plaintiff wаs guilty of contributory negligence. The Supreme Court, in
Anthony
v.
Hobbie,
“. . . The burden of proving contributory negligence is upon the defendant. (19 Cal.Jur. 697-699.) True, contributory negligence may be found by the trier of fact from the plaintiffs' own evidence. But cases in which it can be said that the negligence of plaintiff contributes proximately to the accident as a matter of law are rare. The rule has been stated in various ways in a legion of cases, that contributory negligence is not established as a matter of law unless thе only reasonable hypothesis is that such negligence exists; that reasonable or sensible men could have drawn that conclusion and none other; that where there are different inferences that may be drawn, one for and one against, the one against will be followed; and that before it can be held as a matter of law that contributory negligence exists, the evidence must point unerringly to that conclusion. [Citations.] ...”
Also, in
Bady
v.
Detwiler,
It cannot be said from the complaint that the only reasonable hypothesis is that plaintiff was guilty of negligence or that reasonable men could draw the sole conсlusion that plaintiff was negligent.
Cases cited by defendant corporation are those determined upon a motion for nonsuit or directed verdict. Obviously in *780 the cited eases the trial judge had before him evidence of the circumstances of thе accident, and not the mere formal statements in the pleadings.
Although defendant corporation seeks to apply section 2850, Labor Code, to the pleadings in the instant case, thus requiring a pleading of gross negligence, there is no allegation in the complaint which described an employer-employee relation between any of the parties or allegations from which an inference of this relationship could be drawn. This section is under article 3, Labor Code, entitled “Obligations of Employee.” Since there is no pleading of such a relationship existing nor allegations from which an inference of employer-employee relationship can be drawn, the inapplicability of this code section is рatent.
Plaintiff seeks to apply the obligations set forth in section 17820,- Health and Safety Code, to create a liability against defendant corporation. The section reads as follows:
“In every'apartment house with more than two apаrtments above the first floor, and in every hotel there shall be installed and kept burning from sunset to sunrise throughout the year artificial light sufficient in volume to illuminate properly every public hallway, passageway, public stairway, fire escape egress, elevator, public water-closet compartment, or toilet room.”
Plaintiff’s complaint does not allege what type of premises were occupied by her and owned by defendant Zanes. Although on this appeal both plaintiff and dеfendant corporation refer to the premises as an “apartment house,” these statements cannot and do not supply a deficiency in the complaint which would bring into operation the provisions of section 17820.
Judgment reversed, with directions to overrule the demurrer and permit the filing of an answer thereto by defendant Pacific Gas and Electric Company.
Draper, Acting P. J., and Shoemaker, J., concurred.
Notes
Assigned by Chairman of Judicial Council.
