Corrected which class is instantiated