adding the optimise option for the scala compilation.
Can distribute shapes.