Added class for main method and classes for other window types.