ABCD is a square on the cartesian plane with A, B and C having coordinates (2,2), (3,2) and (3,1) respectively. The coordinates of D are