exercise 2.7 alphanumeric sequences