Implemented "print" method