Suppose you want to create a generic function alternative to summary() in R. The name of the function is robSum(). The default action will be just to check the class and produce a message whether the input object has a certain class or not. In the second stage, you will define a method for the new generic function.