scala exercise and lean