created sharedQueue class method.