Adding mainframe class