scala language practice