"(1) Any court dealing with an offender in respect of his offence must have regard to the following purposes of sentencing— (a) the punishment of offenders (b) the reduction of crime (including its reduction by deterrence) (c) the reform and rehabilitation of offenders (d) the protection of the public, and (e) the making of reparation by offenders to persons affected by their offences."