Added rescale() function. Added array size constant