I baked my sister a cake for her birthday.
In this sentence, "baked" is the main verb, which indicates the action that is being performed. The indirect object is "my sister," which tells us to whom the action is being done. The direct object is "a cake," which tells us what is being baked. The preposition "for" indicates the purpose of the action, which is to celebrate her sister's birthday.