Added another scala solution