Set up class creation code