Sentencing legislation must factor in needs of children