Added an example of from_dict