exercise 2.50 flip-horiz, rotate180, rotate270