It would be wrong to throw someone into the path of a runaway trolley in order to stop it and keep it from hitting five people on the track ahead; that would involve intending harm to the one as a means of saving the five. But it would be permissible to divert a runaway trolley onto a track holding one and away from a track holding five: in that case one foresees the death of the one as a side effect of saving the five but one does not intend it.