finish scala learning article 2