nouns as objects

Nouns can be direct objects, indirect objects, and objects of a preposition.

Examples:
Direct objects:
Joe passed the test.
We watched two movies last night.

Indirect objects:
Dad brought us presents from Japan.
Please give the children the materials needed for the project.

Object of a preposition
We heard a strange noise in the middle of the night.
Frank sat between the two girls.