legal aid sentencing and punishment of offend