Some long distance trains were having more number of compartments thus making the train longer than today.
In this example above what is the use of the word having ?Is it a verb or a gerund or a participle? How to identify it's nature?
The reason of my confusion is that I know that (am/is/are)-be verbs can be used as a auxiliary verb in continuous tense like - He is playing a game. They were having a good time.Or as a main verb - This is my car. But I am not sure about it's use here.
It can be a participle , like in a sense that ( more number of compartments) is qualifying (the train) hence acting as an adjective==> hence participle. But I haven't seen use of having as participle.