; and (2) funds in the account, in an amount determined pursuant to an agreement between the parent of the child and the local educational agency concerned, shall be used to pay for the child’s costs of attendance at such school. (m) Tax treatment of accounts (1) In general A Military Education Savings Account is exempt from taxation under subtitle A of the Internal Revenue Code of 1986. (2) Contributions and distributions For purposes of subtitle A of the Internal Revenue Code of 1986— (A) any contribution to a military education savings account by the Secretary under this Act shall not be includible in the gross income of the individual for whose benefit such account is maintained or the parent of such individual