before class