Update main.h

added inhertings. line 15