preparing for class