Killer sentenced to 21 years