Update class sample with static inner class.
Add class documentations.