add scala day3 exercise2