Examples of uses of a noun clause:
subject of the sentence:The
cookies
I madewill be passed out after recess.
predicate nominative: These are the cookies I made myself.
direct object: They enjoyed the cookies we made together.
indirect object: The kids ate all of the cookies we made.
object of a participle (gerund): Baking the cookies we made was fun.
used as an appositive: The snack, the cookies we made, was a big hit.
object of an infinitive: To bring the cookies we made will be a surprise.