working on defining the pattern. all tests pass so far. 1-6 complete