class Node:
def __init__(self, name=None):
self.name = name
self.next = None
def main():
current = None
first = Node()
second = Node()
third = Node()
first.name = "James Gosling"
first.next = second
second.name = "2023"
second.next = third
third.name = "Sun Microsystem"
third.next = None
current = first
while current is not None:
print(current.name)
current = current.next
if __name__ == "__main__":
main()