basic scala assistance