NU-01(hj): -Refactored magic numbers into constants and extracted variables for more readability