from_dict initial implementation