Making the classes extend super class