Java to scala example added