first version of class and example file