A constructivist account of the development of perception, attention, and memory