Rewrote the display of the program