Code to test digital normalisation