changed class to define