add scala solution