For the rehabilitation of persons who are or have been subject to a criminal charge or on remand and have suffered a restriction of liberty in one of hm’s prisons or young offenders institutions, by means of educational training, mentoring or guidance provided to such persons so as to assist in their rehabilitation into the wider community.