The base of a solid region in the first quadrant is bounded by the x-axis,y-axis, the graph of #y=x^2+1#, and the vertical line x=2. If the cross sections perpendicular to the x-axis are squares, what is the volume of the solid?