This example shows how to use extend in Ruby to add methods from a module as class methods to a class. First, a module Greetings is defined with a method hello. Then, a class Person is defined. Using extend Greetings inside Person adds the hello method as a class method. When Person.hello is called, it runs the module method and prints the message. The execution table traces each step: defining the module, defining the class, extending the class, calling the method, and ending the program. The variable tracker shows Person gains the class method after extend. Key moments clarify that extend adds class methods, not instance methods. The quiz tests understanding of when methods are added and called, and the difference between extend and include. The snapshot summarizes the key points for quick reference.