Moved patterns to chapter 7