Interface is added to the Main class in sample.
superclass function is implemented.