; and (2) has been determined to be surplus property under chapter 5 of title 40, United States Code. (b) Definitions In this section: (1) Beginning farmer or rancher The term beginning farmer or rancher means an individual or entity that has not operated a farm or ranch or that has operated a farm or ranch for not more than 10 consecutive years and that will materially and substantially participate in the operation of the farm or ranch. In the case of an entity, these requirements apply to all members of the entity. (2) Food, Agriculture, Conservation, and Trade Act of 1990 terms The terms socially disadvantaged farmer or rancher and veteran farmer or rancher have the meanings given those terms in section 2501(e) of the Food, Agriculture, Conservation, and Trade Act of 1990 ( 7 U.S.C. 2279(e) ). III Investment in Local and Regional Food Systems 301. Mandatory funding for farmers’ market and local food promotion program Section 6(g)(1) of the Farmer-to-Consumer Direct Marketing Act of 1976 ( 7 U.S.C. 3005(g)(1) ) is amended— (1) by striking and at the end of subparagraph (C); (2) in subparagraph (D), by striking 2018. and inserting 2017; and ; and (3) by adding at the end the following new subparagraph: (E) $50,000,000 for each of fiscal years 2018 through 2023. . 302. Grants to support farm viability programs (a) Grants authorized The Secretary of Agriculture may make competitive grants to support a farm viability program developed by a public or private entity that is designed— (1) to improve the economic viability and integrity of farms participating in the program through the development and implementation of a farm viability plans