Now, a new block. Check old value of level. Level is 1. Now set level to 2, and create another class object. Level is 2.
Finally we end the block here. This should kill the inner class object. X object of level 2 destroyed.
Back in the old block we test the level. Level is 1. That's the simple test. Now, the outer class object should die. X object of level 1 destroyed.