create class to handle multiprocessing