updating readData method in microprocessor class