Read the sentence.

New factories used machines and electricity in place of horses.

What is the object of the preposition in place of?

factories

horses

electricity

machines