made Location a tree type. defined newLocation