wrote show() and added utility functions - JM