Fixed double input for class num.
Fixed mispelling error.