Self-directed activity and cognitive development