Implement read_dict method