Implemented a display function