Identify the sentence in which modifiers are correctly placed

a. I dropped the bag of groceries on the​ table, coming in the door.
b. Coming in the​ door, the bag of groceries on the table were dropped by me.

c. I dropped the bag of groceries coming in the door on the table.
d. Coming in the​ door, I dropped the bag of groceries on the table