scala exersice 4