text: have made it the principal aim of young offender institutions in England and Wales to help prepare offenders for their return to the outside community (see the Young Offender Institution Rules 1988 listed in the annex to this report). Emphasis is placed on: (a) Provision of a programme of activities, including education, training and work, designed to assist offenders to acquire or develop personal responsibility, self-discipline, physical fitness, interests and skills and to obtain suitable employment after release; (b) Fostering of links between the offender and the outside community; and (c) Co-operation with the services responsible for the offender's supervision after release. 142 The period in custody is not regarded in isolation, but as part of a Proh^1 Qln°-UdeS anuautomatic Period of supervision in the community the Probation Service or the Social Services Department after release. CCPR/C/58/Add.6 page 33 Secure accommodation for children - England and Malea 143. The legislation governing the provision and use of secure accommodation for children is contained in: (a) Section 20A of the Child Care Act 1980 (as amended by para. 50 of schedule 2 of the Health and Social Services and Social Security Adjudications Act 1983); (b) The Secure Accommodation (No. 2) Regulations 1983; (c) The Secure Accommodation (No. 2) (Amendment) Regulations 1986. The two sets of regulations referred to above were made by the Secretary of State under powers conferred on him by section 20A of the Child Care Act 1980. 144. Secure accommodation is provided in local authority community homes for children to accommodate those children who cannot be cared for properly in non-secure conditions. It therefore follows that the use of such accommodation should be a last resort. Secure accommodation may be used for any children who are in the care of a local authority or who have been 
analysis: The text appears to be discussing the policies and regulations related to the treatment and rehabilitation of young offenders and children in secure accommodation in England and Wales. It highlights the importance of preparing offenders for their return to the community and providing a structured program to help them acquire skills and develop personal responsibility.