quick fix of output
removed unused code
removed unused variable
fixed bug
modified exit_class function to support inner class.
supported inner class.
忘れた．．．
use print method instead of print statement