Implemented all the instructions except Read and Write