Refine a class to your desire