Added the class rules