I think it is important to make the class interesting to the students. Generally, if the student enjoys being in class, there are few attendance issues. I have had students challenge me on late work in the past. Thankfully, I set clear boundaries in the announcements, which helped me reinforce the expectation