implemented real-time paper classification