When a rectangle is rotated about one side forms which solid?
A. Rectangular pyramid
B. Cylinder
C. Sphere
D. Rectangular prism