Simplify two_bar example into simple; extend Cursor class with cursor code from tree