Written a base for all classes.