scala practice