place code in class