Kelly went to school.
Kelly received detention because she was skipping.
Kelly snuck out of the building when she got there and went to the park, and her principal was there.
Kelly stayed in the building until she and her class went  to the park, and her principal was there.