Various examples of inner class behaviour