R is the region bounded below by y=x^2 and above by y=1. Suppose a solid has base R and the cross-sections of the solid perpendicular to the y-axis are squares. Find the volume of this solid.

I know the answer is 2 (I think), but can someone explain how to do this?