Gianna walked into the class after the bell rung.
She ended up missing work because of the detention.
Gianna's teacher gave her detention for being late.
Gianna's teacher gave her homework for being late.