start working on a new solution in scala