xrange -- still need to sort out this 'map' and 'sort' business