Children's understanding of rules they invent themselves