Create method to read and write prices