task1 (scala) DONE