Visualizing integer addition

Task
Create a dynamic figure that visualizes the addition of integers on the number line.
Explore the construction...
Change the numbers of the [b][color=#0000ff]blue[/color][/b] and [color=#cc0000][b]red [/b][/color]sliders, in order to create new problems for adding integers on the number line.
Instructions
[table][tr][td][size=100]1.[/size][/td][td][size=100][icon]https://wiki.geogebra.org/uploads/thumb/3/30/Menu-options.svg/120px-Menu-options.svg.png[/icon][/size][/td][td][size=100]Open the [i]Settings[/i] of the [img]https://wiki.geogebra.org/uploads/thumb/c/c8/Menu_view_graphics.svg/16px-Menu_view_graphics.svg.png[/img] [i]Graphics View[/i] using the [img]https://wiki.geogebra.org/uploads/thumb/d/db/Stylingbar_icon_graphics.svg/16px-Stylingbar_icon_graphics.svg.png[/img] [i]Style Bar[/i].[br][/size][/td][/tr][tr][td][size=100]2.[/size][/td][td][size=100][icon]https://wiki.geogebra.org/uploads/thumb/3/30/Menu-options.svg/120px-Menu-options.svg.png[/icon][/size][/td][td][size=100]On tab [i]xAxis[/i] set the distance of tick marks to 1 by checking the box [i]Distance[/i] and entering 1 into the text field.[/size][/td][/tr][tr][td][size=100]3.[/size][/td][td][size=100][icon]https://wiki.geogebra.org/uploads/thumb/3/30/Menu-options.svg/120px-Menu-options.svg.png[/icon][/size][/td][td][size=100]On tab [i]Basic[/i] set the [i]minimum[/i] of the [i]x[/i]Axis to -11 and the [i]maximum[/i] to 11.[/size][/td][/tr][tr][td][size=100]4.[/size][/td][td][size=100][icon]https://wiki.geogebra.org/uploads/thumb/3/30/Menu-options.svg/120px-Menu-options.svg.png[/icon][/size][/td][td][size=100]On tab [i]yAxis[/i] uncheck [i]Show yAxis[/i] and close the [i]Settings[/i].[/size][/td][/tr][tr][td][size=100]5.[/size][/td][td][icon]/images/ggb/toolbar/mode_slider.png[/icon][br][/td][td][size=100]Create two sliders [i]a[/i] and [i]b[/i], both with [i]Interval[/i] -5 to 5 and [i]Increment[/i] 1.[br][/size][/td][/tr][tr][td][size=100]6.[/size][/td][td][size=100][icon]https://www.geogebra.org/images/ggb/toolbar/mode_showhidelabel.png[/icon][br][/size][/td][td][size=100]Show the value of the sliders instead of their names using the [img]https://wiki.geogebra.org/uploads/thumb/d/db/Stylingbar_icon_graphics.svg/16px-Stylingbar_icon_graphics.svg.png[/img] [i]Style Bar[/i].[br][/size][/td][/tr][tr][td][size=100]7.[/size][/td][td][size=100][icon]https://wiki.geogebra.org/uploads/thumb/4/40/Menu_view_algebra.svg/120px-Menu_view_algebra.svg.png[/icon][br][/size][/td][td][size=100]Create points [code]A = (0 , 1)[/code] and [code]B = A + (a , 0)[/code].[br][b]Hint: [/b]The distance of point [i]B[/i] to point [i]A[/i] is determined by slider [i]a[/i].[br][/size][/td][/tr][/table]
Try it yourself...
Instructions (continued)
[table][tr][td][size=100]8.[/size][/td][td][icon]/images/ggb/toolbar/mode_vector.png[/icon][br][/td][td][size=100]Create a vector [code]u = Vector(A, B) [/code]which has the length [i]a[/i].[br][/size][/td][/tr][tr][td][size=100]9.[/size][/td][td][icon]https://wiki.geogebra.org/uploads/thumb/4/40/Menu_view_algebra.svg/120px-Menu_view_algebra.svg.png[/icon][br][/td][td][size=100]Create points [code]C = B + (0, 1) [/code]and [code]D = C + (b, 0)[/code].[br][/size][/td][/tr][tr][td][size=100]10.[/size][/td][td][icon]/images/ggb/toolbar/mode_vector.png[/icon][br][/td][td][size=100]Create vector [code]v = Vector(C, D) [/code]which has the length [i]b[/i].[br][/size][/td][/tr][tr][td][size=100]11.[/size][/td][td][icon]https://wiki.geogebra.org/uploads/thumb/4/40/Menu_view_algebra.svg/120px-Menu_view_algebra.svg.png[/icon][br][/td][td][size=100]Create point [code]R = (x(D), 0)[/code].[br][b]Hint: [/b]The input [code]x(D)[/code] gives you the [i]x[/i]-coordinate of point [i]D[/i]. Thus, point [i]R[/i] shows the result of the addition on the number line.[/size][br][/td][/tr][tr][td][size=100]12.[/size][/td][td][icon]https://wiki.geogebra.org/uploads/thumb/4/40/Menu_view_algebra.svg/120px-Menu_view_algebra.svg.png[/icon][/td][td][size=100]Create point [code]Z = (0, 0)[/code].[br][/size][/td][/tr][tr][td][size=100]13.[/size][/td][td][icon]/images/ggb/toolbar/mode_segment.png[/icon][br][/td][td][size=100]Create three segments [code]c = Segment(Z, A)[/code], [/size][size=100][code]d= Segment(B, C)[/code], and [code]e = Segment(D, R)[/code].[/size][br][/td][/tr][tr][td][size=100]14.[/size][/td][td][img]https://wiki.geogebra.org/uploads/thumb/d/db/Stylingbar_icon_graphics.svg/32px-Stylingbar_icon_graphics.svg.png[/img][/td][td][size=100]Use the [i]Style Bar [/i]to enhance your construction (e.g. match the color of sliders and vectors, change line style, fix sliders, hide labels and points).[/size][br][/td][/tr][/table]

Information: Visualizing integer addition