in the act of writing a viewer class
implemented simple viewer class