added a basic 'print' method