move to better scala part 1