illustrate to_dict in readme