change class definition format