some codes on class