Better way for classes.