Problem #2: extract magic numbers