writing equations of parallel and perpendicular lines