Correct removePrerequisite method in class implementation