added line parameter for MyPattern