beginning of class creation