Write a class without a certificate, and write another class with a certificate. The content of each class is the same. If there is only one class after merging, it will be much simpler.