Describe both the aims of sentencing and the factors which are taken into account when sentencing an individual.