scala practice3