Instantiating nested context classes