Given that a shape is a parallelogram, which of the following is sufficient to state that it is also a rectangle?
A. The opposite sides are of equal length.
B. The diagonals are of equal length.
C. The opposite sides are parallel.
D. The diagonals bisect each other.