Normalization method
Finish normalize() function