a simple inner class example for learning