created basic classes for multi threading.