Gianna walked into the class after the bell rung.
She ended up missing work because of the detention.
She was given detention by the teacher.
She luckily was given a warning instead of detention by the teacher.