Contour Patterns And Algebra