input: Write a python function to create a list of Friend objects and return the names of all friends older than a given age.
  assert get_names_older_than([Friend("Alice", 30, ["Reading", "Hiking"]), Friend("Bob", 25, ["Gaming", "Cooking"]), Friend("Charlie", 35, ["Photography", "Cycling"])], 28) == ["Alice", "Charlie"]
  assert get_names_older_than([Friend("Dave", 20, ["Running", "Swimming"]), Friend("Eve", 22, ["Drawing", "Singing"])], 21) == ["Eve"]
  assert get_names_older_than([Friend("Frank", 40, ["Gardening", "Chess"]), Friend("Grace", 32, ["Dancing", "Writing"])], 35) == ["Frank"]
output: class Friend:
      def __init__(self, name, age, hobbies):
          self.name = name
          self.age = age
          self.hobbies = hobbies
  
  def get_names_older_than(friends, age):
      return [friend.name for friend in friends if friend.age > age]