add Pascal_triangle method to class Pattern