add scala day3 exercise