Adding readData method to Microprocessor class