Sample Pattern And Sequence Rules Calculus