modified to include print method