Added binary, octal, and decimal functionalities in printData().