Tried out scala a bit