added virtual functions in ClassCustom