add a class definition and example print method