$cost = $h«Locations»{$location}«Buildings»{$b}«cost»;