Some scala work