What is the grammatical function of the gerund?

Uncle Viktor studied welding and now he works as a technician in a metal fabrications company that produces and assembles metal parts for machinery
- It is a subject
- It is an object of a verb
- It is an object of a preposition

- It is a noun used as the subject of the sentence