Refactored classify.py: removed magic number, introduced constants instead