added rexex option to exercise 10