which

I would like to know the meaning of “which”.

He got me the job. I think it paid $5 an hour, which I considered a fortune.

It refers to something previously mentioned(the salary) when introducing a clause giving further information (the speaker’s opinion).