convert example -> data