reader class working