Draw a two dimensional figure that could be rotated using a vertical axis of rotation to give the barrel shown

If you use a coordinate system, and the y-axis as the axis of rotation, you can obtain the given barrel from the following curve:
If you rotate the previous two-dimensional figure, around the y-axis, you obtain the given barrel.