More scala problems