Worked on memory read and write