When person A kills person B, person A may be arrested, tried, and ultimately convicted of a crime and sentenced to a specific punishment in order to teach person A not to kill again; and also to serve as a deterrent for other people.