The code shown in the question is using the following line.
namespace Drupal\Core\Block\BlockBase; That is wrong as that isn't a namespace a third-party module should use. It's the full, complete of namespace, name ofFix the BlockBase class implemented by Drupal core.namespaces:
Instead of that, use the following two lines.delete: namespace Drupal\Core\Block\BlockBase;
namespace Drupal\iai_tour\Plugin\Block; use Drupal\Core\Block\BlockBase; If iai_tour isn't the module machine name, replace it with the correct module machine name. That essentially is the name of the .module name without extension.add: namespace Drupal\MY_COOL_MODULE\Plugin\Block; use Drupal\Core\Block\BlockBase;