He was fascinated by the way the body turned food into energy by a direct chemical process, just as batteries turn chemicals directly into electricity, so he had also been doing some experiments with batteries.
(He; was fascinated; by the way)
He
was fascinated
by the way