working example for the class