Improved box and pointer diagram