A compound X is present in certain vegetables and is necessary for DNA maintenance. Laboratory studies show humans can produce small amounts of X, but not enough when dietary intake is absent, and deficiency causes a disease that resolves when X is added to the diet. According to the definition used in class, how should X be classified?