why do we need to define the class?