add old Regular2.scala