Shaw ascribed his long life and his constant high energy—which resulted in a prodigious output—to his vegetable diet. Between 1879 and 1950, Shaw wrote more than 50 plays, five novels, critical studies, reviews, letters, Fabian pamphlets, and various tracts and essays. He remained vigorous and alert until his death at age 94, which was caused by his fall from a ladder while pruning trees.