display logic example