add AfterClass method