adding templates, initial pattern testing