How To Do Patterns In Algebra