add print() method