A figure is cut perpendicular to its base. The resulting shape is a rectangle. Which three-dimensional figure could be the original figure?

A. Rectangular prism

B. Square pyramid

C. Cone

D. Triangular pyramid