Class file and example code