; hearing (A) Expanding the record After the filing of a motion to reduce a sentence under this section, the court may direct the parties to expand the record by submitting additional written materials relating to the motion. (B) Hearing (i) In general The court shall conduct a hearing on the motion, at which the defendant and counsel for the defendant shall be given the opportunity to be heard. (ii) Evidence In a hearing under this section, the court may allow parties to present evidence. (iii) Defendant’s presence At a hearing under this section, the defendant shall be present unless the defendant waives the right to be present. The requirement under this clause may be satisfied by the defendant appearing by video teleconference. (iv) Counsel A defendant who is unable to obtain counsel is entitled to have counsel appointed to represent the defendant for proceedings under this section, including any appeal, unless the defendant waives the right to counsel. (v) Findings The court shall state in open court, and file in writing, the reasons for granting or denying a motion under this section. (C) Appeal The Government or the defendant may file a notice of appeal in the district court for review of a final order under this section. The time limit for filing such appeal shall be governed by rule 4(a) of the Federal Rules of Appellate Procedure. (f) Educational and rehabilitative programs A defendant who is convicted and sentenced as an adult for an offense committed and completed before the defendant attained 18 years of age may not be deprived of any educational, training, or rehabilitative program that is otherwise available to the general prison population. . (b) Table of sections The table of sections for chapter 403 of title 18, United States Code, is amended by inserting after the item relating to section 5032 the following: 5032A. Modification of an imposed term of imprisonment for violations of law committed prior to age 18. . (c) Applicability The amendments made by this section shall apply to any conviction