add main and read_data