Select the THREE prepositional phrases in the sentence.

They spent several days in the library according to the librarian gathering materials for their work

1) in the library

2) according to the librarian
3) for their work