Updated method signature of discreatize_data, and added logic in read_data_from_file to find minimum and maximum data values