I am having some doubts regarding the use of pronouns. Please have a look at the following sentences.
-
I picked a pen from the dustbin yesterday. It writes very smoothly.
-
I picked a pen from the dustbin yesterday. It was full of plastic trash.
In the first example, I used the pronoun for the direct object (“pen”). However, in the second example, I used the pronoun for the object of the preposition (“dustbin”).
Are both examples correct in the context of the use of pronouns? Or should I use the noun (“pen” or “dustbin”) instead of the pronoun?