; (2) in paragraphs (1)(B), (1)(F)(ii), (1)(G)(iii), (6)(A), (6)(D), (6)(E)(ii), and (7)(D), by striking 19 each place it appears and inserting 23 ; (3) in subparagraphs (A), (B), and (D) of paragraph (7), by striking elementary or secondary school each place it appears and inserting educational institution ; (4) in paragraph (7)(A), by striking schools involved and inserting institutions involved ; (5) in paragraph (7), by amending subparagraph (C) to read as follows: (C) For purposes of this subsection, the term educational institution means— (i) a school which provides elementary or secondary education as determined under the law of the State or other jurisdiction in which it is located; and (ii) an institution described in section 102 of the Higher Education Act of 1965 ( 20 U.S.C. 1002 ). ; and (6) in paragraph (7)(D), by striking diploma or equivalent certificate from a secondary school (as defined in subparagraph (C)(i)) and inserting diploma, degree, or equivalent certificate from an institution described in subparagraph (C)(ii) . (b) Railroad Retirement Act (1) In general Section 2(d) of the Railroad Retirement Act of 1974 (45 U.S.C. 232(2)(d)) is amended— (A) in clause (iii) of paragraph (1), by striking will be less than nineteen years of age and a full-time elementary or secondary school student and inserting will be less than 23 years of age and a full-time student at an educational institution (as defined in section 202(d)(7) of the Social Security Act) ; and (B) in paragraph (4)— (i) by striking elementary or secondary school each place it appears and inserting educational institution ; (ii) by striking nineteen and inserting 23