First try of building the mainclass. So far only methods using the frameclass.