scala answer 3