Implemented print method