Updated main class.
Added class to process number.