Avoid using magic numbers in the sample code