Understanding and representing space