more variants on instantiating the main class