add explanation on inner class