Playing with a scala version on Mendel's law