Alg. 4.05 horizontal and vertical lines