Method for scraping classes