parse data with scala