Added constructor things for classes.