6.1 exercise (part 2) regular pattern