Hey sepoto.

I think you should keep in mind that two lines are perpendicular in two dimensions if m1*m2 = -1 where m1 is the gradient of one line and m2 is the gradient of the other. They must satisfy this relationship for the perpendicular attribute to hold.