Add function to ease certain class creation