Revised Sample class to use print method