first exercise of scala  day1