Algebraic Expressions as Pattern