Why did you change this? The code is using the modulo operator, which was being described here.