Extract function read_results
Extract function save_2d