The easiest way to check you answer is to assigned scripts for points as you did. Now for it to be a rectangle just show that its diagonals are equal, which is just using the distance formula. You will also need to show an angle of 90 degrees at all four corner, and opposite sides are always congruent Msg me if this is confusing.