Add Pattern prototype