Match each class with the correct defintion