added the scala version of diamonds-failling, The small case work