diff --git a/src/Hook/StudentsdbexampleHooks.php b/src/Hook/StudentsdbexampleHooks.php
new file mode 100644
index 0000000..d293098
--- /dev/null
+++ b/src/Hook/StudentsdbexampleHooks.php
@@ -0,0 +1,30 @@
+<?php
+
+namespace Drupal\studentsdbexample\Hook;
+
+use Drupal\Core\Routing\RouteMatchInterface;
+use Drupal\Core\Hook\Attribute\Hook;
+use Drupal\Core\StringTranslation\StringTranslationTrait;
+/**
+ * Hook implementations for studentsdbexample.
+ */
+class StudentsdbexampleHooks
+{
+    use StringTranslationTrait;
+    /**
+     * Implements hook_help().
+     */
+    #[Hook('help')]
+    public function help($route_name, \Drupal\Core\Routing\RouteMatchInterface $route_match)
+    {
+        switch ($route_name) {
+            // Main module help for the studentsdbexample module.
+            case 'help.page.studentsdbexample':
+                $output = '';
+                $output .= '<h3>' . $this->t('About') . '</h3>';
+                $output .= '<p>' . $this->t('This dispaly information what you enter your application.') . '</p>';
+                return $output;
+            default:
+        }
+    }
+}
diff --git a/studentsdbexample.module b/studentsdbexample.module
index ddf7049..a39e87b 100644
--- a/studentsdbexample.module
+++ b/studentsdbexample.module
@@ -4,23 +4,16 @@
  * @file
  * Contains \Drupal\studentsdbexample.module.
  */
-
+use Drupal\Core\Hook\Attribute\LegacyHook;
+use Drupal\studentsdbexample\Hook\StudentsdbexampleHooks;
 use Drupal\Core\Routing\RouteMatchInterface;
 
 /**
  * Implements hook_help().
  */
+#[LegacyHook]
 function studentsdbexample_help($route_name, RouteMatchInterface $route_match) {
-  switch ($route_name) {
-    // Main module help for the studentsdbexample module.
-    case 'help.page.studentsdbexample':
-      $output = '';
-      $output .= '<h3>' . t('About') . '</h3>';
-      $output .= '<p>' . t('This dispaly information what you enter your application.') . '</p>';
-      return $output;
-
-    default:
-  }
+  return \Drupal::service(StudentsdbexampleHooks::class)->help($route_name, $route_match);
 }
 
 /**
diff --git a/studentsdbexample.services.yml b/studentsdbexample.services.yml
new file mode 100644
index 0000000..653cd71
--- /dev/null
+++ b/studentsdbexample.services.yml
@@ -0,0 +1,5 @@
+
+services:
+  Drupal\studentsdbexample\Hook\StudentsdbexampleHooks:
+    class: Drupal\studentsdbexample\Hook\StudentsdbexampleHooks
+    autowire: true
