Update 2: Added octal conversion