added a print method