Court of Appeal upholds life sentence for violent offender