'Having' in that sentence is a gerund.
Some dictionaries define 'gerund' as a noun. I prefer to think of it as a form of the verb that has some of the characteristics of a noun. It's not really important.
ps. Please use a larger font in future posts. We oldies have problems with small print.
Student or Learner