The Bent Pyramid was the second pyramid built in Egypt - they realized that the initial angle was too steep and had to adjust mid-way. The Red (or Flat) Pyramid was the third pyramid built in Egypt and was built as a replacement for the Bent Pyramid.
The Bent Pyramid
The Bent Pyramid in the distance
The Bent and Red Pyramid
The Red Pyramid
Here you go!