courts sentence persons for crimes