Implemented the readlocation function
Sample Data