added fetchData method to classify script