day2 scala hw