New scale code for the square