A quadrilateral is a rectangle if all its angles are right-angles. Using the fact that p is perpendicular to l and l is parallel to m is sufficient to prove that p is perpendicular to m (corresponding angles equal). Three of the angles of ABCD are now known to be right-angles. Therefore the fourth is also a right-angle (angle sum of quadrilateral). Therefore ABCD is a rectangle.