Use a class instead of a dictionary to store plugins