Constructing a Square

This is a diagram showing how to draw a square. The order these were drawn is as follows:
  1. Line AB
  2. Black dotted circles
  3. Black dotted line
  4. Black dashed circle
  5. Orange square (if desired)
  6. Blue dashed circles
  7. Blue square (if desired)