example for use in class