He has been given an extended sentence of 25 years