buffett updated, made a good function for display line diagrams