use print method instead of print statement
fixed bug
modified exit_class function to support inner class.
supported inner class.
忘れた．．．
added comment