scala task01 bugfix