Using constants instead of magic numbers